()
| 526 | } |
| 527 | |
| 528 | func (s *Session) cancelWarmAutoImportCache() { |
| 529 | s.warmAutoImportMu.Lock() |
| 530 | defer s.warmAutoImportMu.Unlock() |
| 531 | if s.warmAutoImportCancel != nil { |
| 532 | s.warmAutoImportCancel() |
| 533 | s.warmAutoImportCancel = nil |
| 534 | } |
| 535 | } |
| 536 | |
| 537 | const idleCacheCleanDelay = 30 * time.Second |
| 538 |
no test coverage detected