gomodule / redigo

Go client for Redis
Apache License 2.0
9.76k stars 1.25k forks source link

DialReadTimeout documentation is inaccurate #600

Closed pabigot closed 2 years ago

pabigot commented 2 years ago

The documentation specifies that DialReadTimeout can be identified by checking for the string "io/timeout" in the Error() value. This could never work, as the string provided by os.ErrDeadlineExceeded is "i/o timeout".

stevenh commented 2 years ago

Thanks for the report and the PR to fix :)