Launch healhcheck only one time instead of two
This commit is contained in:
parent
d71e8ab7c9
commit
1e7f34c271
2 changed files with 2 additions and 2 deletions
|
@ -109,8 +109,6 @@ func (m *Manager) BuildHandlers(rootCtx context.Context, entryPoints []string, t
|
||||||
entryPointHandlers[entryPointName] = handlerWithMiddlewares
|
entryPointHandlers[entryPointName] = handlerWithMiddlewares
|
||||||
}
|
}
|
||||||
|
|
||||||
m.serviceManager.LaunchHealthCheck()
|
|
||||||
|
|
||||||
return entryPointHandlers
|
return entryPointHandlers
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,8 @@ func (f *TCPRouterFactory) CreateTCPRouters(conf dynamic.Configuration) map[stri
|
||||||
handlersNonTLS := routerManager.BuildHandlers(ctx, f.entryPoints, false)
|
handlersNonTLS := routerManager.BuildHandlers(ctx, f.entryPoints, false)
|
||||||
handlersTLS := routerManager.BuildHandlers(ctx, f.entryPoints, true)
|
handlersTLS := routerManager.BuildHandlers(ctx, f.entryPoints, true)
|
||||||
|
|
||||||
|
serviceManager.LaunchHealthCheck()
|
||||||
|
|
||||||
// TCP
|
// TCP
|
||||||
svcTCPManager := tcp.NewManager(rtConf)
|
svcTCPManager := tcp.NewManager(rtConf)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue