Browse Source

fmt

pull/7329/head
chrislu 4 weeks ago
parent
commit
7e46abf052
  1. 6
      weed/util/log_buffer/log_buffer.go

6
weed/util/log_buffer/log_buffer.go

@ -35,9 +35,9 @@ type LogReadFromDiskFuncType func(startPosition MessagePosition, stopTsNs int64,
// DiskChunkCache caches chunks of historical data read from disk // DiskChunkCache caches chunks of historical data read from disk
type DiskChunkCache struct { type DiskChunkCache struct {
mu sync.RWMutex
chunks map[int64]*CachedDiskChunk // Key: chunk start offset (aligned to chunkSize)
maxChunks int // Maximum number of chunks to cache
mu sync.RWMutex
chunks map[int64]*CachedDiskChunk // Key: chunk start offset (aligned to chunkSize)
maxChunks int // Maximum number of chunks to cache
} }
// CachedDiskChunk represents a cached chunk of disk data // CachedDiskChunk represents a cached chunk of disk data

Loading…
Cancel
Save