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

contrib/gomodule/redigo: Support ConnWithTimeout interface (#535) #554

Merged
merged 3 commits into from
Jan 27, 2020
Merged

contrib/gomodule/redigo: Support ConnWithTimeout interface (#535) #554

merged 3 commits into from
Jan 27, 2020

Conversation

abustany
Copy link
Contributor

Although all Conn implementations shipped in redigo also implement
ConnWithTimeout, we handle both cases in the code to deal with custom
Dial functions that would return implementations that implement Conn
only.

Fixes #535

@gbbr gbbr added this to the Unplanned milestone Dec 20, 2019
gbbr
gbbr previously approved these changes Dec 20, 2019
Copy link
Contributor

@gbbr gbbr left a comment

Choose a reason for hiding this comment

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

Ignore my previous comments. I think this is fine. Please make sure CI passes.

@abustany
Copy link
Contributor Author

Thanks for the quick review! CI passes now, but because I force pushed I erased your approval...

@gbbr gbbr modified the milestones: Unplanned, 1.21.0 Dec 20, 2019
Although all Conn implementations shipped in redigo also implement
ConnWithTimeout, we handle both cases in the code to deal with custom
Dial functions that would return implementations that implement Conn
only.

Fixes #535
Copy link
Contributor

@gbbr gbbr left a comment

Choose a reason for hiding this comment

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

Thanks a lot for doing this! Nice work. We have a bit of a code freeze now but will merge this right after.

contrib/gomodule/redigo/redigo.go Show resolved Hide resolved
@abustany
Copy link
Contributor Author

Great, thanks for the super efficient review :)

@knusbaum knusbaum merged commit e235f11 into DataDog:v1 Jan 27, 2020
@knusbaum
Copy link
Contributor

Thank you, @abustany

mingrammer pushed a commit to mingrammer/dd-trace-go that referenced this pull request Dec 22, 2020
Although all Conn implementations shipped in redigo also implement
ConnWithTimeout, we handle both cases in the code to deal with custom
Dial functions that would return implementations that implement Conn
only.

Fixes DataDog#535
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.

contrib/gomodule/redigo: Redigo don't support ConnWithTimeout
3 participants