mirror of
https://github.com/traefik/traefik.git
synced 2025-09-29 09:41:14 +02:00
Fix typo
This commit is contained in:
parent
6308ce2740
commit
e4db9c72dd
@ -118,7 +118,7 @@ func (server *Server) listenProviders() {
|
|||||||
for {
|
for {
|
||||||
configMsg := <-server.configurationChan
|
configMsg := <-server.configurationChan
|
||||||
jsonConf, _ := json.Marshal(configMsg.Configuration)
|
jsonConf, _ := json.Marshal(configMsg.Configuration)
|
||||||
log.Debugf("Configuration receveived from provider %s: %s", configMsg.ProviderName, string(jsonConf))
|
log.Debugf("Configuration received from provider %s: %s", configMsg.ProviderName, string(jsonConf))
|
||||||
lastConfigs[configMsg.ProviderName] = &configMsg
|
lastConfigs[configMsg.ProviderName] = &configMsg
|
||||||
if time.Now().After(lastReceivedConfiguration.Add(time.Duration(server.globalConfiguration.ProvidersThrottleDuration))) {
|
if time.Now().After(lastReceivedConfiguration.Add(time.Duration(server.globalConfiguration.ProvidersThrottleDuration))) {
|
||||||
log.Debugf("Last %s config received more than %s, OK", configMsg.ProviderName, server.globalConfiguration.ProvidersThrottleDuration)
|
log.Debugf("Last %s config received more than %s, OK", configMsg.ProviderName, server.globalConfiguration.ProvidersThrottleDuration)
|
||||||
@ -158,7 +158,7 @@ func (server *Server) listenConfigurations() {
|
|||||||
server.serverLock.Lock()
|
server.serverLock.Lock()
|
||||||
for newServerEntryPointName, newServerEntryPoint := range newServerEntryPoints {
|
for newServerEntryPointName, newServerEntryPoint := range newServerEntryPoints {
|
||||||
server.serverEntryPoints[newServerEntryPointName].httpRouter.UpdateHandler(newServerEntryPoint.httpRouter.GetHandler())
|
server.serverEntryPoints[newServerEntryPointName].httpRouter.UpdateHandler(newServerEntryPoint.httpRouter.GetHandler())
|
||||||
log.Infof("Server configurartion reloaded on %s", server.serverEntryPoints[newServerEntryPointName].httpServer.Addr)
|
log.Infof("Server configuration reloaded on %s", server.serverEntryPoints[newServerEntryPointName].httpServer.Addr)
|
||||||
}
|
}
|
||||||
server.currentConfigurations = newConfigurations
|
server.currentConfigurations = newConfigurations
|
||||||
server.serverLock.Unlock()
|
server.serverLock.Unlock()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user