Skip to content

Commit 2a20a2a

Browse files
Update pkg/github/server_test.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent dd57d84 commit 2a20a2a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/github/server_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ func (s stubDeps) GetT() translations.TranslationHelperFunc { return s.
6363
func (s stubDeps) GetFlags(_ context.Context) FeatureFlags { return s.flags }
6464
func (s stubDeps) GetContentWindowSize() int { return s.contentWindowSize }
6565
func (s stubDeps) IsFeatureEnabled(_ context.Context, _ string) bool { return false }
66-
func (s stubDeps) Logger(_ context.Context) mcpLog.Logger {
66+
func (s stubDeps) Logger(ctx context.Context) mcpLog.Logger {
6767
if s.obsv != nil {
68-
return s.obsv.Logger(context.Background())
68+
return s.obsv.Logger(ctx)
6969
}
7070
return mcpLog.NewNoopLogger()
7171
}
72-
func (s stubDeps) Metrics(_ context.Context) mcpMetrics.Metrics {
72+
func (s stubDeps) Metrics(ctx context.Context) mcpMetrics.Metrics {
7373
if s.obsv != nil {
74-
return s.obsv.Metrics(context.Background())
74+
return s.obsv.Metrics(ctx)
7575
}
7676
return mcpMetrics.NewNoopMetrics()
7777
}

0 commit comments

Comments
 (0)