(rawClient ClientShard, conn net2.ManagedConn)
| 32 | } |
| 33 | |
| 34 | func (c *ShardedClient) release(rawClient ClientShard, conn net2.ManagedConn) { |
| 35 | if rawClient.IsValidState() { |
| 36 | _ = conn.ReleaseConnection() |
| 37 | } else { |
| 38 | _ = conn.DiscardConnection() |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | func (c *ShardedClient) unmappedError(key string) error { |
| 43 | return errors.Newf("Key '%s' does not map to any memcache shard", key) |
no test coverage detected