Skip to content

Use original context if available in Timer.Done()#762

Merged
merlimat merged 1 commit intooxia-db:mainfrom
merlimat:timer-ctx
Oct 16, 2025
Merged

Use original context if available in Timer.Done()#762
merlimat merged 1 commit intooxia-db:mainfrom
merlimat:timer-ctx

Conversation

@merlimat
Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: Matteo Merli <mmerli@apache.org>
tm.DoneCtx(context.Background())
}

func (tm Timer) DoneCtx(ctx context.Context) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the context is indeed useful, we could change the method signature directly. :)

func (tm Timer) Done(context.Context) {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure it's super useful, though it was messing up with the linter. It was getting different linter comments on Mac vs CI workflow...

@merlimat merlimat merged commit 0f79ed8 into oxia-db:main Oct 16, 2025
12 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants