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 83fd596ba1
commit cdbfec8bb7

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() defer reconnectTicker.Stop()
ssTicker := time.NewTicker(5 * time.Second) ssTicker := time.NewTicker(5 * time.Second)
@ -368,7 +368,7 @@ func reconnectDeck(ctx context.Context, cfg *config.Config, pm **PageManager) *D
select { select {
case <-ctx.Done(): case <-ctx.Done():
return nil return nil
case <-time.After(3 * time.Second): case <-time.After(1 * time.Second):
} }
} }
} }