-
Notifications
You must be signed in to change notification settings - Fork 24
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
Refactor scheduler/polling out of scheduled-feed/main.go #121
Conversation
de9313c
to
838ba21
Compare
Other than my previous comments, this looks a lot cleaner! It also opens up a smoother path to introducing per feed polling rates, as mentioned in #85 |
Running the binary locally, and triggering via a remote curl, at the end of the logs I get:
I've noticed before these changes that the
|
num_processed=0 is due to no packages being processed within the cutoff window I believe. I'm not witnessing this with longer pollRate values. |
838ba21
to
9a11ef6
Compare
|
9a11ef6
to
9d0b1f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
scheduled-feed/main.go was becoming quite cluttered as functionality has been added, this PR remedies this by shifting many of the responsibilities to the scheduler with additional structs being introduced to handle the polling of feed collections.