()
| 42 | ) |
| 43 | |
| 44 | func init() { |
| 45 | go func() { |
| 46 | ticker := time.NewTicker(60 * time.Second) |
| 47 | defer ticker.Stop() |
| 48 | for range ticker.C { |
| 49 | cleanCache() |
| 50 | } |
| 51 | }() |
| 52 | } |
| 53 | |
| 54 | func cleanCache() { |
| 55 | cacheMu.Lock() |
nothing calls this directly
no test coverage detected