diff --git a/server/server.go b/server/server.go index 96763f100..9a947e068 100644 --- a/server/server.go +++ b/server/server.go @@ -121,10 +121,7 @@ func New(cfg config.Config) (*Server, error) { } hrt := heart.New(reg, mach) - mon := &Monitor{ - TTL: agentTTL, - ival: agentTTL / 2, - } + mon := NewMonitor(agentTTL) apiServer := api.NewServer(listeners, api.NewServeMux(reg, cfg.TokenLimit)) apiServer.Serve()