mailgun / groupcache

Clone of golang/groupcache with TTL and Item Removal support
Apache License 2.0
484 stars 72 forks source link

feat: do not count context cancelation as peer error #41

Closed costela closed 2 years ago

costela commented 2 years ago

If the incoming internal groupcache request gets canceled, it should not count as a peer error.

With the current code, it's impossible to separate context cancelations (which might be outside the control of the service running groupcache) from "real" peer errors.

Also, with this PR, in case the internal request times-out (via context), the requesting peer can still do its own error accounting.

WDYT?