Skip to content
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

Some enhancements #103

Merged
merged 3 commits into from
May 22, 2017
Merged

Some enhancements #103

merged 3 commits into from
May 22, 2017

Conversation

bgaifullin
Copy link
Contributor

  • added messages for test asserts
  • modified condition to select expired jobs instead of exact match
  • optimisation: did re-create timer on request for snapshot

Select all exprired jobs instead of exact match job next time running time.
Snapshot requests is read-only operation, so
it is not necessary to re-order tasks and reset timer
@bgaifullin
Copy link
Contributor Author

@robfig could you please review this PR ?

@@ -221,7 +220,7 @@ func TestLocalTimezone(t *testing.T) {
wg := &sync.WaitGroup{}
wg.Add(2)

now := time.Now().Local()
now := time.Now()
Copy link
Owner

Choose a reason for hiding this comment

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

what is the purpose of this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

since time.Now() is local time already, so it is not need to call .Local()

@robfig robfig merged commit 2ae65ff into robfig:master May 22, 2017
@robfig
Copy link
Owner

robfig commented May 22, 2017

Ok, thanks!

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