MCPcopy
hub / github.com/dropbox/godropbox / NewShardedClient

Function NewShardedClient

memcache/sharded_client.go:24–32  ·  view source on GitHub ↗

This creates a new ShardedClient.

(
	manager ShardManager,
	builder ClientShardBuilder)

Source from the content-addressed store, hash-verified

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

Callers 2

ExampleShardedClientFunction · 0.92
SetUpTestMethod · 0.85

Calls

no outgoing calls

Tested by 2

ExampleShardedClientFunction · 0.74
SetUpTestMethod · 0.68