mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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{
|
||||
|
@@ -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
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user