From f144789210a640e689184e1f88d9e6ddd185bc09 Mon Sep 17 00:00:00 2001 From: Maksim Totmin Date: Mon, 22 Jun 2026 10:28:43 +0700 Subject: [PATCH] reconnect: faster retry (1s) and health check (2s) --- daemon.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon.go b/daemon.go index 056297f..03f5793 100644 --- a/daemon.go +++ b/daemon.go @@ -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): } } }