(ctx context.Context)
| 421 | } |
| 422 | |
| 423 | func (c *channelCacheImpl) MaxCacheSize(ctx context.Context) int { |
| 424 | |
| 425 | maxCacheSize := 0 |
| 426 | callback := func(v interface{}) bool { |
| 427 | channelCache := AsSingleChannelCache(ctx, v) |
| 428 | if channelCache == nil { |
| 429 | return false |
| 430 | } |
| 431 | channelSize := channelCache.GetSize() |
| 432 | if channelSize > maxCacheSize { |
| 433 | maxCacheSize = channelSize |
| 434 | } |
| 435 | return true |
| 436 | } |
| 437 | c.channelCaches.Range(callback) |
| 438 | |
| 439 | return maxCacheSize |
| 440 | } |
| 441 | |
| 442 | func (c *channelCacheImpl) isCompactActive() bool { |
| 443 | return c.compactRunning.IsTrue() |
nothing calls this directly
no test coverage detected