Nit: use time.Durations instead of constants in seconds. (#7438)

Nit: use `time.Durations` instead of constants in seconds. Makes for slightly more readable code.
This commit is contained in:
Lisandro Pin authored and GitHub committed 2025-11-04 13:02:22 -08:00
1 parent f4f2718ba0
commit f466ff1412
7 files changed
+20 -14

No files matched your search

+1 -1
View File
@@ -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,