Skip to content

Conversation

@dlsniper
Copy link
Contributor

A few small updates

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.

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.

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

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

4 participants