mirror of
https://github.com/pierre-emmanuelJ/iptv-proxy.git
synced 2026-03-12 22:24:18 +01:00
Update doc
Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@exoscale.ch>
This commit is contained in:
@@ -23,7 +23,7 @@ type cacheMeta struct {
|
||||
time.Time
|
||||
}
|
||||
|
||||
// XXX Add one cache per url and store it on the local storage or key/value storage e.g: etcd, redis...
|
||||
// XXX Use key/value storage e.g: etcd, redis...
|
||||
// and remove that dirty globals
|
||||
var xtreamM3uCache map[string]cacheMeta = map[string]cacheMeta{}
|
||||
var lock = sync.RWMutex{}
|
||||
@@ -85,7 +85,6 @@ func (p *proxy) xtreamGet(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
// XXX Add cache per url and store it on the local storage or key/value storage e.g: etcd, redis...
|
||||
lock.RLock()
|
||||
meta, ok := xtreamM3uCache[m3uURL.String()]
|
||||
d := time.Now().Sub(meta.Time)
|
||||
|
||||
Reference in New Issue
Block a user