mirror of
https://github.com/traefik/traefik
synced 2026-02-03 11:10:33 +00:00
Minor corrections
This commit is contained in:
+3
-1
@@ -10,4 +10,6 @@ traefik.toml
|
|||||||
vendor/
|
vendor/
|
||||||
static/
|
static/
|
||||||
.vscode/
|
.vscode/
|
||||||
site/
|
site/
|
||||||
|
*.log
|
||||||
|
*.exe
|
||||||
|
|||||||
Regular → Executable
Regular → Executable
@@ -15,7 +15,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@@ -92,9 +91,9 @@ func deleteReqid(r *http.Request, reqid string) {
|
|||||||
func saveBackendNameForLogger(r *http.Request, backendName string) {
|
func saveBackendNameForLogger(r *http.Request, backendName string) {
|
||||||
if reqidHdr := r.Header[loggerReqidHeader]; len(reqidHdr) == 1 {
|
if reqidHdr := r.Header[loggerReqidHeader]; len(reqidHdr) == 1 {
|
||||||
reqid := reqidHdr[0]
|
reqid := reqidHdr[0]
|
||||||
if infoRw, ok := infoRwMap.get(reqid); ok {
|
if infoRw, ok := infoRwMap.Get(reqid); ok {
|
||||||
infoRw.SetBackend(backendName)
|
infoRw.(*logInfoResponseWriter).SetBackend(backendName)
|
||||||
infoRw.SetFrontend(backend2FrontendMap[backendName])
|
infoRw.(*logInfoResponseWriter).SetFrontend(backend2FrontendMap[backendName])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ func (server *Server) listenConfigurations(stop chan bool) {
|
|||||||
currentConfigurations := server.currentConfigurations.Get().(configs)
|
currentConfigurations := server.currentConfigurations.Get().(configs)
|
||||||
if configMsg.Configuration == nil {
|
if configMsg.Configuration == nil {
|
||||||
log.Infof("Skipping empty Configuration for provider %s", configMsg.ProviderName)
|
log.Infof("Skipping empty Configuration for provider %s", configMsg.ProviderName)
|
||||||
} else if reflect.DeepEqual(server.currentConfigurations[configMsg.ProviderName], configMsg.Configuration) {
|
} else if reflect.DeepEqual(currentConfigurations[configMsg.ProviderName], configMsg.Configuration) {
|
||||||
log.Infof("Skipping same configuration for provider %s", configMsg.ProviderName)
|
log.Infof("Skipping same configuration for provider %s", configMsg.ProviderName)
|
||||||
} else {
|
} else {
|
||||||
// Copy configurations to new map so we don't change current if LoadConfig fails
|
// Copy configurations to new map so we don't change current if LoadConfig fails
|
||||||
|
|||||||
Reference in New Issue
Block a user