1
0

reconnect: faster retry (1s) and health check (2s)

This commit is contained in:
Maksim Totmin 2026-06-22 10:28:43 +07:00
parent 20c46e18b3
commit f144789210

View File

@ -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):
}
}
}