Minor corrections
This commit is contained in:
parent
10815eca8e
commit
04dd41ac3b
5 changed files with 7 additions and 6 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -10,4 +10,6 @@ traefik.toml
|
|||
vendor/
|
||||
static/
|
||||
.vscode/
|
||||
site/
|
||||
site/
|
||||
*.log
|
||||
*.exe
|
||||
|
|
0
examples/accessLog/runAb.sh
Normal file → Executable file
0
examples/accessLog/runAb.sh
Normal file → Executable file
0
examples/accessLog/runExample.sh
Normal file → Executable file
0
examples/accessLog/runExample.sh
Normal file → Executable file
|
@ -15,7 +15,6 @@ import (
|
|||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
)
|
||||
|
@ -92,9 +91,9 @@ func deleteReqid(r *http.Request, reqid string) {
|
|||
func saveBackendNameForLogger(r *http.Request, backendName string) {
|
||||
if reqidHdr := r.Header[loggerReqidHeader]; len(reqidHdr) == 1 {
|
||||
reqid := reqidHdr[0]
|
||||
if infoRw, ok := infoRwMap.get(reqid); ok {
|
||||
infoRw.SetBackend(backendName)
|
||||
infoRw.SetFrontend(backend2FrontendMap[backendName])
|
||||
if infoRw, ok := infoRwMap.Get(reqid); ok {
|
||||
infoRw.(*logInfoResponseWriter).SetBackend(backendName)
|
||||
infoRw.(*logInfoResponseWriter).SetFrontend(backend2FrontendMap[backendName])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -184,7 +184,7 @@ func (server *Server) listenConfigurations(stop chan bool) {
|
|||
currentConfigurations := server.currentConfigurations.Get().(configs)
|
||||
if configMsg.Configuration == nil {
|
||||
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)
|
||||
} else {
|
||||
// Copy configurations to new map so we don't change current if LoadConfig fails
|
||||
|
|
Loading…
Reference in a new issue