async postFlush

This commit is contained in:
Umputun
2018-02-13 11:48:00 -06:00
parent 4639e14146
commit 99b98bfee4
+1 -1
View File
@@ -41,6 +41,6 @@ func (lc *loadingCache) Get(key string, ttl time.Duration, fn func() ([]byte, er
func (lc *loadingCache) Flush() {
lc.bytesCache.Flush()
if lc.postFlushFn != nil {
lc.postFlushFn()
go lc.postFlushFn()
}
}