Skip to content

Commit

Permalink
Launch healhcheck only one time instead of two
Browse files Browse the repository at this point in the history
  • Loading branch information
juliens authored and traefiker committed Feb 25, 2020
1 parent d71e8ab commit 56650e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/server/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ func (m *Manager) BuildHandlers(rootCtx context.Context, entryPoints []string, t
entryPointHandlers[entryPointName] = handlerWithMiddlewares
}

m.serviceManager.LaunchHealthCheck()

return entryPointHandlers
}

Expand Down
2 changes: 2 additions & 0 deletions pkg/server/tcprouterfactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ func (f *TCPRouterFactory) CreateTCPRouters(conf dynamic.Configuration) map[stri
handlersNonTLS := routerManager.BuildHandlers(ctx, f.entryPoints, false)
handlersTLS := routerManager.BuildHandlers(ctx, f.entryPoints, true)

serviceManager.LaunchHealthCheck()

// TCP
svcTCPManager := tcp.NewManager(rtConf)

Expand Down

0 comments on commit 56650e6

Please sign in to comment.