check expird second
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -110,7 +110,7 @@ func (bc *MemoryCache) vaccuum() { | ... | @@ -110,7 +110,7 @@ func (bc *MemoryCache) vaccuum() { |
| 110 | return | 110 | return |
| 111 | } | 111 | } |
| 112 | for { | 112 | for { |
| 113 | <-time.After(time.Duration(bc.dur)) | 113 | <-time.After(time.Duration(bc.dur) * time.Second) |
| 114 | if bc.items == nil { | 114 | if bc.items == nil { |
| 115 | return | 115 | return |
| 116 | } | 116 | } | ... | ... |
-
Please register or sign in to post a comment