|
@@ -96,10 +96,10 @@ func (s *memoryStore) Get(id string, clear bool) (digits []byte) {
|
|
}
|
|
}
|
|
|
|
|
|
func (s *memoryStore) collect() {
|
|
func (s *memoryStore) collect() {
|
|
- now := time.Now()
|
|
|
|
s.Lock()
|
|
s.Lock()
|
|
defer s.Unlock()
|
|
defer s.Unlock()
|
|
s.numStored = 0
|
|
s.numStored = 0
|
|
|
|
+ now := time.Now()
|
|
for e := s.idByTime.Front(); e != nil; {
|
|
for e := s.idByTime.Front(); e != nil; {
|
|
ev, ok := e.Value.(idByTimeValue)
|
|
ev, ok := e.Value.(idByTimeValue)
|
|
if !ok {
|
|
if !ok {
|