From 92fc7edcb78447127c55bd7ee3303845c851a570 Mon Sep 17 00:00:00 2001 From: Olaf Buddenhagen Date: Wed, 2 Mar 2016 13:25:30 +0100 Subject: [PATCH] Cleanup: Restore usage of NewMonitor() instead of inlining the code The function moved to a different package, but otherwise can be used as before -- I presume inlining it was some kind of accident... --- server/server.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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()