( shard int, conn net2.ManagedConn)
| 478 | } |
| 479 | |
| 480 | func (c *ShardedClient) versionHelper( |
| 481 | shard int, |
| 482 | conn net2.ManagedConn) VersionResponse { |
| 483 | |
| 484 | if conn == nil { |
| 485 | return NewVersionErrorResponse( |
| 486 | c.connectionError(shard, nil), |
| 487 | make(map[int]string)) |
| 488 | } |
| 489 | client := c.builder(shard, conn) |
| 490 | defer c.release(client, conn) |
| 491 | |
| 492 | return client.Version() |
| 493 | } |
| 494 | |
| 495 | // See Client interface for documentation. |
| 496 | func (c *ShardedClient) Version() VersionResponse { |
no test coverage detected