We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
time.After
https://github.com/papertrail/go-tail/blob/master/follower/follower.go#L220 will create a new *time.Timer for every iteration of the event loop, and this timer will not be cleaned up until its 10 seconds expire. For busy logs, this will be a problem and could explain #9.
*time.Timer
Recommend using time.Newtimer and stopping and resetting it as appropriate
time.Newtimer
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/papertrail/go-tail/blob/master/follower/follower.go#L220 will create a new
*time.Timer
for every iteration of the event loop, and this timer will not be cleaned up until its 10 seconds expire. For busy logs, this will be a problem and could explain #9.Recommend using
time.Newtimer
and stopping and resetting it as appropriateThe text was updated successfully, but these errors were encountered: