Skip to content

Commit

Permalink
Fix review
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatur committed Jan 10, 2018
1 parent d9654db commit 168797e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 25 deletions.
2 changes: 1 addition & 1 deletion integration/access_log_test.go
Expand Up @@ -587,7 +587,7 @@ func checkAccessLogExactValues(c *check.C, line string, i int, v accessLogValue)

func waitForTraefik(c *check.C, containerName string) {
// Wait for Traefik to turn ready.
req, err := http.NewRequest(http.MethodGet, "http://127.0.0.1:7888/api", nil)
req, err := http.NewRequest(http.MethodGet, "http://127.0.0.1:8080/api", nil)
c.Assert(err, checker.IsNil)

err = try.Request(req, 2*time.Second, try.StatusCodeIs(http.StatusOK), try.BodyContains(containerName))
Expand Down
7 changes: 2 additions & 5 deletions integration/fixtures/access_log_config.toml
Expand Up @@ -33,11 +33,8 @@ defaultEntryPoints = ["http"]

checkNewVersion = false

################################################################
# Web configuration backend
################################################################
[web]
address = ":7888"
[api]
dashboard = false

[docker]
exposedByDefault = false
Expand Down
16 changes: 0 additions & 16 deletions integration/fixtures/consul/simple.toml469785378

This file was deleted.

4 changes: 2 additions & 2 deletions integration/fixtures/traefik_log_config.toml
Expand Up @@ -16,8 +16,8 @@ checkNewVersion = false
[entryPoints.http]
address = ":8000"

[web]
address = ":7888"
[api]
dashboard = false

[docker]
exposedByDefault = false
Expand Down
2 changes: 1 addition & 1 deletion server/server.go
Expand Up @@ -1110,7 +1110,7 @@ func (s *Server) loadConfig(configurations types.Configurations, globalConfigura
}

if frontend.RateLimit != nil && len(frontend.RateLimit.RateSet) > 0 {
lb, err = buildRateLimiter(lb, frontend.RateLimit)
lb, err = s.buildRateLimiter(lb, frontend.RateLimit)
lb = s.wrapHTTPHandlerWithAccessLog(lb, fmt.Sprintf("rate limit for %s", frontendName))
if err != nil {
log.Errorf("Error creating rate limiter: %v", err)
Expand Down

0 comments on commit 168797e

Please sign in to comment.