mediocregopher / radix.v2

Redis client for Go
http://godoc.org/github.com/mediocregopher/radix.v2
MIT License
433 stars 92 forks source link

Only consider timeout a critical for command/response style methods, … #40

Closed mediocregopher closed 8 years ago

mediocregopher commented 8 years ago

…not for ReadResp (fixes #39)

Without this distinction the pubsub package (and any pubsub package which uses ReadResp) would be completely borked. At the same time we still need to consider timeouts critical for actual command/response situations (as explained in 041a70a). So now only ReadResp will not set LastCritical for timeouts, but others will.