From 36e9f6149dd2a82536dee8adac936a06061e2d99 Mon Sep 17 00:00:00 2001 From: jdl Date: Mon, 15 Jun 2026 18:45:11 +0200 Subject: [PATCH] WIP --- peer/app.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/peer/app.go b/peer/app.go index 9fc02f0..ec6be84 100644 --- a/peer/app.go +++ b/peer/app.go @@ -24,6 +24,7 @@ var _ WGDevice = (*wginterface.Device)(nil) // compile-time check: Device satisf const ( ControlPort = 4561 PingInterval = 8 * time.Second + TickInterval = 2 * time.Second TimeoutInterval = 30 * time.Second ) @@ -78,7 +79,7 @@ func (a *App) Run() error { // while we were down). a.updateHosts() - stateTicker := time.NewTicker(time.Second) // TODO: Const. + stateTicker := time.NewTicker(TickInterval) pingTicker := time.NewTicker(PingInterval) sig := make(chan os.Signal, 1)