diff options
| author | chrislu <chris.lu@gmail.com> | 2024-03-12 09:17:20 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-03-12 09:17:20 -0700 |
| commit | 1efa502dbbb24f54921b38c23b6bc9359c017977 (patch) | |
| tree | 920e7fc514f93114b789fd5bb836b9c3f915e5eb | |
| parent | 87607531191f07433e61fe03731c8ec81112b1b1 (diff) | |
| download | seaweedfs-1efa502dbbb24f54921b38c23b6bc9359c017977.tar.xz seaweedfs-1efa502dbbb24f54921b38c23b6bc9359c017977.zip | |
go fmt
| -rw-r--r-- | weed/filer/reader_cache.go | 20 | ||||
| -rw-r--r-- | weed/storage/store.go | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/weed/filer/reader_cache.go b/weed/filer/reader_cache.go index 9e52e9615..aabef6e1c 100644 --- a/weed/filer/reader_cache.go +++ b/weed/filer/reader_cache.go @@ -22,16 +22,16 @@ type ReaderCache struct { type SingleChunkCacher struct { completedTimeNew int64 sync.Mutex - parent *ReaderCache - chunkFileId string - data []byte - err error - cipherKey []byte - isGzipped bool - chunkSize int - shouldCache bool - wg sync.WaitGroup - cacheStartedCh chan struct{} + parent *ReaderCache + chunkFileId string + data []byte + err error + cipherKey []byte + isGzipped bool + chunkSize int + shouldCache bool + wg sync.WaitGroup + cacheStartedCh chan struct{} } func NewReaderCache(limit int, chunkCache chunk_cache.ChunkCache, lookupFileIdFn wdclient.LookupFileIdFunctionType) *ReaderCache { diff --git a/weed/storage/store.go b/weed/storage/store.go index 782eb5b79..cf2e0dcf9 100644 --- a/weed/storage/store.go +++ b/weed/storage/store.go @@ -345,7 +345,7 @@ func (s *Store) CollectHeartbeat() *master_pb.Heartbeat { stats.VolumeServerDiskSizeGauge.WithLabelValues(col, "normal").Set(float64(size)) } - for col, deletedBytes := range collectionVolumeDeletedBytes{ + for col, deletedBytes := range collectionVolumeDeletedBytes { stats.VolumeServerDiskSizeGauge.WithLabelValues(col, "deleted_bytes").Set(float64(deletedBytes)) } |
