Remove unnecessary context wrappers

This commit is contained in:
世界
2023-12-16 15:40:14 +08:00
parent 89c723e3e4
commit 2e607118c3
6 changed files with 12 additions and 10 deletions

View File

@@ -55,7 +55,7 @@ func NewRemoteRuleSet(ctx context.Context, router adapter.Router, logger logger.
logger: logger,
options: options,
updateInterval: updateInterval,
pauseManager: pause.ManagerFromContext(ctx),
pauseManager: service.FromContext[pause.Manager](ctx),
}
}