(cache *channelCacheImpl)
| 518 | } |
| 519 | |
| 520 | func waitForCompaction(cache *channelCacheImpl) (compactionComplete bool) { |
| 521 | for i := 0; i <= 10; i++ { |
| 522 | if cache.compactRunning.IsTrue() { |
| 523 | time.Sleep(100 * time.Millisecond) |
| 524 | } else { |
| 525 | return true |
| 526 | } |
| 527 | } |
| 528 | return false |
| 529 | } |
| 530 | |
| 531 | // Used for singleChannelCache testing with non-shared testQueryHandler |
| 532 | func testQueryHandlerFactory(collectionID uint32) (ChannelQueryHandler, error) { |
no test coverage detected