Skip to content

Commit

Permalink
定时更新
Browse files Browse the repository at this point in the history
  • Loading branch information
fusikai committed Mar 25, 2024
1 parent 77a8f24 commit 4519b36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/adminengine/engine_admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"github.com/douyu/juno/internal/pkg/service/clientproxy"
"github.com/douyu/juno/internal/pkg/service/confgo"
"github.com/douyu/juno/internal/pkg/service/confgov2"
"github.com/douyu/juno/internal/pkg/service/huaweilog"
"github.com/douyu/juno/internal/pkg/service/k8s"
"github.com/douyu/juno/internal/pkg/service/notify"
"github.com/douyu/juno/internal/pkg/service/openauth"
Expand Down Expand Up @@ -262,6 +263,7 @@ func (eng *Admin) refreshAliyunLogMenu() (err error) {
refreshMenuDataConfig.ImmediatelyRun = true
refreshMenuData := refreshMenuDataConfig.Build()
refreshMenuData.Schedule(xcron.Every(time.Minute), xcron.FuncJob(aliyunlog.Instance.RefreshMenuData))
refreshMenuData.Schedule(xcron.Every(time.Minute), xcron.FuncJob(huaweilog.Instance.RefreshMenuData))
err = eng.Schedule(refreshMenuData)
if err != nil {
return err
Expand Down

0 comments on commit 4519b36

Please sign in to comment.