Skip to content

Commit

Permalink
Use backend loaded into rt
Browse files Browse the repository at this point in the history
  • Loading branch information
theseanything committed Nov 5, 2024
1 parent f3239ff commit 7e63fdd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/load_routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ func (rt *Router) reloadCsRoutes(pool PgxIface) {
logInfo("router: reloading routes from content store")
newmux := triemux.NewMux()

backends := rt.loadBackendsFromEnv()
err := loadRoutesFromCS(pool, newmux, backends)
err := loadRoutesFromCS(pool, newmux, rt.backends)
if err != nil {
logWarn(fmt.Sprintf("router: error reloading routes from content store: %v", err))
return
Expand Down

0 comments on commit 7e63fdd

Please sign in to comment.