aboutsummaryrefslogtreecommitdiff
path: root/weed/command/volume.go
diff options
context:
space:
mode:
authorLisandro Pin <lisandro.pin@proton.ch>2025-11-04 22:02:22 +0100
committerGitHub <noreply@github.com>2025-11-04 13:02:22 -0800
commitf466ff1412005f3db10de9dc4939e52cb4a2add8 (patch)
tree13d7a135fc7b20b94c95631b1477ad7b82ca6927 /weed/command/volume.go
parentf4f2718ba05b13c51f14a316c48a256da6a77fe8 (diff)
downloadseaweedfs-f466ff1412005f3db10de9dc4939e52cb4a2add8.tar.xz
seaweedfs-f466ff1412005f3db10de9dc4939e52cb4a2add8.zip
Nit: use `time.Duration`s instead of constants in seconds. (#7438)
Nit: use `time.Durations` instead of constants in seconds. Makes for slightly more readable code.
Diffstat (limited to 'weed/command/volume.go')
-rw-r--r--weed/command/volume.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go
index 58dee0e52..cbd5bc676 100644
--- a/weed/command/volume.go
+++ b/weed/command/volume.go
@@ -258,7 +258,7 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v
v.folders, v.folderMaxLimits, minFreeSpaces, diskTypes,
*v.idxFolder,
volumeNeedleMapKind,
- v.masters, constants.VolumePulseSeconds, *v.dataCenter, *v.rack,
+ v.masters, constants.VolumePulsePeriod, *v.dataCenter, *v.rack,
v.whiteList,
*v.fixJpgOrientation, *v.readMode,
*v.compactionMBPerSecond,