Merge pull request #12 from lwch/master

降低重连间隔时间
This commit is contained in:
李文超
2022-08-09 17:22:00 +08:00
committed by GitHub

4
app.go
View File

@@ -66,8 +66,8 @@ func (app *app) start() {
if i > 1 {
time.Sleep(nextSleep)
nextSleep <<= 1
if nextSleep > 10*time.Second {
nextSleep = 10 * time.Second
if nextSleep > 5*time.Second {
nextSleep = 5 * time.Second
}
}