Revert 3986bff
for now
This commit is contained in:
parent
2fb27e8369
commit
baa5a64da4
7
cache.go
7
cache.go
|
@ -876,12 +876,11 @@ func (c *cache) Save(w io.Writer) (err error) {
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
c.RLock()
|
c.RLock()
|
||||||
items := c.items
|
defer c.RUnlock()
|
||||||
for _, v := range items {
|
for _, v := range c.items {
|
||||||
gob.Register(v.Object)
|
gob.Register(v.Object)
|
||||||
}
|
}
|
||||||
c.RUnlock()
|
err = enc.Encode(&c.items)
|
||||||
err = enc.Encode(&items)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue