reconnect: faster retry (1s) and health check (2s)
This commit is contained in:
parent
20c46e18b3
commit
f144789210
@ -125,7 +125,7 @@ func Run(ctx context.Context, cfg *config.Config, opts RunOptions) error {
|
||||
}
|
||||
})
|
||||
|
||||
reconnectTicker := time.NewTicker(5 * time.Second)
|
||||
reconnectTicker := time.NewTicker(2 * time.Second)
|
||||
defer reconnectTicker.Stop()
|
||||
|
||||
ssTicker := time.NewTicker(5 * time.Second)
|
||||
@ -368,7 +368,7 @@ func reconnectDeck(ctx context.Context, cfg *config.Config, pm **PageManager) *D
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return nil
|
||||
case <-time.After(3 * time.Second):
|
||||
case <-time.After(1 * time.Second):
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user