fix(region): user sync with ctx (#22556)

This commit is contained in:
屈轩
2025-05-19 18:09:31 +08:00
committed by GitHub
parent ad21f56e1f
commit cd5fb77c59
+2 -1
View File
@@ -26,6 +26,7 @@ import (
"yunion.io/x/onecloud/pkg/cloudcommon/db"
"yunion.io/x/onecloud/pkg/mcclient/auth"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/identity"
"yunion.io/x/onecloud/pkg/util/ctx"
)
type userCacheSyncWorker struct {
@@ -34,7 +35,7 @@ type userCacheSyncWorker struct {
func (w *userCacheSyncWorker) Run() {
log.Debugf("[userCacheSyncWorker] Run project cache sync worker ...")
err := syncUsers(context.Background(), w.ids)
err := syncUsers(ctx.CtxWithTime(), w.ids)
if err != nil {
log.Errorf("fail to syncUsers %s", err)
}