-
Notifications
You must be signed in to change notification settings - Fork 35
Simpler calculation of time to wait until func deadline and timer creation #66
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
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
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.
Approving.
axis { | ||
name 'GO_VERSION' | ||
values '1.14', '1.15', '1.16' | ||
values '1.15', '1.16', '1.17' |
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.
Re: bumping the go versions -- since the extension is compiled down to machine code it should run in Amazon's Linux environments regardless of which version we use to compile it. So I don't see any issues in dropping support for 1.14 from our perspective.
The one possible negative tradeoff here is if a user's compiling their own extension and if that user doesn't have easy access to go 1.15 or greater, we'd might be leaving them behind if we start using go 1.15+ features.
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.
In a slack convo we decided we'll address older version support if the need comes up later on.
// Create a timer that expires after timeToWait | ||
timer := time.NewTimer(timeToWait) | ||
// Create a timer that expires after durationUntilFlushDeadline | ||
timer := time.NewTimer(durationUntilFlushDeadline) |
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.
+1 User of Time.Until is definitely clearer.
Simplify how we calculate the deadline for flushing data before the function times out.
resolves #65