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)