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:
@@ -1,5 +1,7 @@
|
||||
package constants
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
VolumePulseSeconds = 5
|
||||
VolumePulsePeriod = 5 * time.Second
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user