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

Updates #28

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Updates #28

wants to merge 7 commits into from

Conversation

dlsniper
Copy link
Contributor

A few small updates

@@ -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")
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@@ -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
Copy link
Contributor

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,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why 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.

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>`,
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@ardan-bkennedy
Copy link
Member

@theckman @dlsniper can we make a decision on this PR.

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.

3 participants