Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Cleanup: Restore usage of NewMonitor() instead of inlining the code
Browse files Browse the repository at this point in the history
The function moved to a different package, but otherwise can be used as
before -- I presume inlining it was some kind of accident...
  • Loading branch information
antrik committed Mar 10, 2016
1 parent c1eac7d commit 6649c99
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6649c99

Please sign in to comment.