Skip to content

core, metrics, triedb: generalize the resettingTimer #32016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rjl493456442
Copy link
Member

@rjl493456442 rjl493456442 commented Jun 12, 2025

TODO: rename the ResettingTimer to something else?

// Update records the duration of an event.
func (t *ResettingTimer) Update(d time.Duration) {
func (t *ResettingTimer) Update(d int64) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why change the type here to int64? It seems more correct to use time.Duration, and the underlying type is the same.

@fjl fjl self-assigned this Jun 17, 2025
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