This creates a new ShardedClient.
( manager ShardManager, builder ClientShardBuilder)
| 22 | |
| 23 | // This creates a new ShardedClient. |
| 24 | func NewShardedClient( |
| 25 | manager ShardManager, |
| 26 | builder ClientShardBuilder) Client { |
| 27 | |
| 28 | return &ShardedClient{ |
| 29 | manager: manager, |
| 30 | builder: builder, |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | func (c *ShardedClient) release(rawClient ClientShard, conn net2.ManagedConn) { |
| 35 | if rawClient.IsValidState() { |
no outgoing calls