From 4ccccdddf898dd62642bafc042a02e00c8dae980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=95=B8=E6=A5=A0?= Date: Mon, 23 Dec 2024 20:12:58 +0800 Subject: [PATCH] fix: correctly set compareWith when requesting app refresh with delay Signed-off-by: Xiaonan Shen --- controller/appcontroller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/appcontroller.go b/controller/appcontroller.go index a9c44facb6586..a5c9eb73633e4 100644 --- a/controller/appcontroller.go +++ b/controller/appcontroller.go @@ -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()