Skip to content

Commit

Permalink
Update pkg/scaling/scale_handler.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
Signed-off-by: Xiayang Wu <xwu@rippling.com>
  • Loading branch information
fivesheep and JorTurFer committed Jan 16, 2022
1 parent 04da7a0 commit 2d96d1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/scaling/scale_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,10 @@ func (h *scaleHandler) buildScalers(ctx context.Context, withTriggers *kedav1alp
if scaler != nil {
scaler.Close(ctx)
}
return result, err
for _, builder := range result {
builder.Scaler.Close(ctx)
}
return nil, err
}

result = append(result, cache.ScalerBuilder{
Expand Down

0 comments on commit 2d96d1a

Please sign in to comment.