MCPcopy
hub / github.com/redis/go-redis / newRingShard

Function newRingShard

ring.go:269–277  ·  view source on GitHub ↗
(opt *RingOptions, addr string)

Source from the content-addressed store, hash-verified

267}
268
269func newRingShard(opt *RingOptions, addr string) *ringShard {
270 clopt := opt.clientOptions()
271 clopt.Addr = addr
272
273 return &ringShard{
274 Client: opt.NewClient(clopt),
275 addr: addr,
276 }
277}
278
279func (shard *ringShard) String() string {
280 var state string

Callers 1

newRingShardsMethod · 0.85

Calls 1

clientOptionsMethod · 0.45

Tested by

no test coverage detected