( shard int, conn net2.ManagedConn, statsKey string)
| 435 | } |
| 436 | |
| 437 | func (c *ShardedClient) statHelper( |
| 438 | shard int, |
| 439 | conn net2.ManagedConn, |
| 440 | statsKey string) StatResponse { |
| 441 | |
| 442 | if conn == nil { |
| 443 | return NewStatErrorResponse( |
| 444 | c.connectionError(shard, nil), |
| 445 | make(map[int](map[string]string))) |
| 446 | } |
| 447 | client := c.builder(shard, conn) |
| 448 | defer c.release(client, conn) |
| 449 | |
| 450 | return client.Stat(statsKey) |
| 451 | } |
| 452 | |
| 453 | // See Client interface for documentation. |
| 454 | func (c *ShardedClient) Stat(statsKey string) StatResponse { |
no test coverage detected