mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-19 14:54:22 +01:00
use time.After instead of sleep
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user