mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 06:03:38 +08:00
go fmt
This commit is contained in:
@@ -22,16 +22,16 @@ type ReaderCache struct {
|
|||||||
type SingleChunkCacher struct {
|
type SingleChunkCacher struct {
|
||||||
completedTimeNew int64
|
completedTimeNew int64
|
||||||
sync.Mutex
|
sync.Mutex
|
||||||
parent *ReaderCache
|
parent *ReaderCache
|
||||||
chunkFileId string
|
chunkFileId string
|
||||||
data []byte
|
data []byte
|
||||||
err error
|
err error
|
||||||
cipherKey []byte
|
cipherKey []byte
|
||||||
isGzipped bool
|
isGzipped bool
|
||||||
chunkSize int
|
chunkSize int
|
||||||
shouldCache bool
|
shouldCache bool
|
||||||
wg sync.WaitGroup
|
wg sync.WaitGroup
|
||||||
cacheStartedCh chan struct{}
|
cacheStartedCh chan struct{}
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewReaderCache(limit int, chunkCache chunk_cache.ChunkCache, lookupFileIdFn wdclient.LookupFileIdFunctionType) *ReaderCache {
|
func NewReaderCache(limit int, chunkCache chunk_cache.ChunkCache, lookupFileIdFn wdclient.LookupFileIdFunctionType) *ReaderCache {
|
||||||
|
@@ -345,7 +345,7 @@ func (s *Store) CollectHeartbeat() *master_pb.Heartbeat {
|
|||||||
stats.VolumeServerDiskSizeGauge.WithLabelValues(col, "normal").Set(float64(size))
|
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))
|
stats.VolumeServerDiskSizeGauge.WithLabelValues(col, "deleted_bytes").Set(float64(deletedBytes))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user