use time.After instead of sleep

This commit is contained in:
Jesse de Wit
2022-12-15 11:00:38 +01:00
parent 336297da7b
commit 4b6eaf3773
5 changed files with 12 additions and 7 deletions

View File

@@ -107,10 +107,10 @@ HealthCheck:
break HealthCheck
}
time.Sleep(50 * time.Millisecond)
<-time.After(50 * time.Millisecond)
}
default:
time.Sleep(200 * time.Millisecond)
<-time.After(200 * time.Millisecond)
}
}