Skip to content

Commit

Permalink
fix: correctly set compareWith when requesting app refresh with delay
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaonan Shen <[email protected]>
  • Loading branch information
沈啸楠 authored and shenxn committed Dec 23, 2024
1 parent ac8e3f0 commit 4ccccdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/appcontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ func (ctrl *ApplicationController) requestAppRefresh(appName string, compareWith
key := ctrl.toAppKey(appName)

if compareWith != nil && after != nil {
ctrl.appComparisonTypeRefreshQueue.AddAfter(fmt.Sprintf("%s/%d", key, compareWith), *after)
ctrl.appComparisonTypeRefreshQueue.AddAfter(fmt.Sprintf("%s/%d", key, *compareWith), *after)
} else {
if compareWith != nil {
ctrl.refreshRequestedAppsMutex.Lock()
Expand Down

0 comments on commit 4ccccdd

Please sign in to comment.