()
| 52 | } |
| 53 | |
| 54 | func (i *itemTracker) getError() error { |
| 55 | if i.failed5xx.Load() > i.failed4xx.Load() { |
| 56 | return i.err5xx.Load() |
| 57 | } |
| 58 | |
| 59 | return i.err4xx.Load() |
| 60 | } |
| 61 | |
| 62 | // DoBatch request against a set of keys in the ring, handling replication and |
| 63 | // failures. For example if we want to write N items where they may all |