Skip to content

Commit

Permalink
fix: use wrong unit (#5830)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored May 31, 2021
1 parent 6b120b8 commit b2559e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/cdn/unit_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ func (s *Service) postAdminResyncBackendWithDatabaseHandler() service.Handler {

for _, u := range s.Units.Buffers {
if u.ID() == unitID {
choosenUnit := u
s.GoRoutines.Exec(context.Background(), "ResyncWithDB-"+unitID, func(ctx context.Context) {
u.ResyncWithDatabase(ctx, s.mustDBWithCtx(ctx), it, dryRun)
choosenUnit.ResyncWithDatabase(ctx, s.mustDBWithCtx(ctx), it, dryRun)
})
}
}
Expand Down

0 comments on commit b2559e4

Please sign in to comment.