Skip to content

Commit

Permalink
remove retry
Browse files Browse the repository at this point in the history
  • Loading branch information
fraidev committed Dec 21, 2023
1 parent b106845 commit 9619ace
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 34 deletions.
4 changes: 0 additions & 4 deletions balancers/iphash.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ func (b *ipHashBalancer) Next(c echo.Context) *middleware.ProxyTarget {
b.mutex.Lock()
defer b.mutex.Unlock()

if b.retryTarget != nil && c.Get("retry") != nil && c.Get("retry").(bool) {
return b.retryTarget
}

if len(b.targets) == 0 {
return nil
} else if len(b.targets) == 1 {
Expand Down
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func main() {
e.Use(middlewares.RateLimit(config))
e.Use(middlewares.DenyRoutes(config))
e.Use(middlewares.Cache(config))
e.Use(middlewares.Retry(config))
e.Use(middlewares.Gzip(config))
e.Use(middleware.ProxyWithConfig(*config.ProxyConfig))

Expand Down
29 changes: 0 additions & 29 deletions middlewares/retry.go

This file was deleted.

0 comments on commit 9619ace

Please sign in to comment.