-
Notifications
You must be signed in to change notification settings - Fork 17
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
Updates #28
base: master
Are you sure you want to change the base?
Conversation
@@ -6,8 +6,6 @@ func injectMessageReactions(r *handler.MessageActions) { | |||
r.HandleReaction("bbq", "bbqgopher") | |||
r.HandleReaction("ghost", "ghost") | |||
r.HandleReaction("spacex", "rocket") | |||
r.HandleReaction("buffalo", "gobuffalo") | |||
r.HandleReaction("gobuffalo", "gobuffalo") |
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.
I'd rather see this be a HandleReactionRand since it's for things we may not want to happen all the time.
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.
I think we can get rid of it. If someone wants it back, they can request it.
cmd/consumer/consumer.go
Outdated
@@ -107,7 +96,7 @@ func runServer(cfg config.C, logger zerolog.Logger) error { | |||
|
|||
cCache := cache.NewChannel(rc) | |||
|
|||
// set up the workqueue | |||
// set up the work queue |
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.
My language choice here was intentional.
@@ -201,7 +185,6 @@ func newHTTPTransport() *http.Transport { | |||
DialContext: (&net.Dialer{ | |||
Timeout: 10 * time.Second, | |||
KeepAlive: 30 * time.Second, | |||
DualStack: true, |
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.
Why this change?
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.
DualStack is deprecated, see https://pkg.go.dev/net#Dialer.DualStack
@@ -227,7 +226,6 @@ func injectMessageResponses(ma *handler.MessageActions) { | |||
`These articles will explain how to organize your Go packages:`, | |||
`- <https://rakyll.org/style-packages/>`, | |||
`- <https://medium.com/@benbjohnson/standard-package-layout-7cdbc8391fc1#.ds38va3pp>`, | |||
`- <https://peter.bourgon.org/go-best-practices-2016/#repository-structure>`, |
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.
I think this is still a good resource. Why the removal?
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.
We have resources for this already, which explain the problem and solution in a similar way.
A few small updates