Refactor time durations (#58484)

This change uses `time.Second` in place of `1000 * time.Millisecond` and `time.Minute` in place of `60*time.Second`.
This commit is contained in:
Sasha Melentyev
2022-11-22 10:09:15 +03:00
committed by GitHub
parent 6ac43c9cb4
commit c02003af3c
18 changed files with 43 additions and 43 deletions

View File

@@ -32,7 +32,7 @@ type Data struct {
func postTestData() {
i := 0
for {
time.Sleep(1000 * time.Millisecond)
time.Sleep(time.Second)
num1 := rand.Intn(10)
num2 := rand.Intn(10)
d := Data{

View File

@@ -75,7 +75,7 @@ func WithCheckConfig(interval time.Duration, maxChecks int) ManagerOption {
const (
defaultCheckInterval = 5 * time.Second
defaultDatasourceCheckInterval = 60 * time.Second
defaultDatasourceCheckInterval = time.Minute
defaultMaxChecks = 3
)