MCPcopy
hub / github.com/CodisLabs/codis / Close

Method Close

pkg/proxy/jodis.go:66–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64}
65
66func (j *Jodis) Close() error {
67 j.mu.Lock()
68 defer j.mu.Unlock()
69 if j.closed {
70 return nil
71 }
72 j.closed = true
73
74 if j.watching {
75 if err := j.client.Delete(j.path); err != nil {
76 log.WarnErrorf(err, "jodis remove node %s failed", j.path)
77 } else {
78 log.Warnf("jodis remove node %s", j.path)
79 }
80 }
81 return j.client.Close()
82}
83
84func (j *Jodis) Rewatch() (<-chan struct{}, error) {
85 j.mu.Lock()

Callers

nothing calls this directly

Calls 4

WarnErrorfMethod · 0.80
WarnfMethod · 0.80
DeleteMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected