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

Method handleShutdown

cmd/admin/proxy.go:186–194  ·  view source on GitHub ↗
(d map[string]interface{})

Source from the content-addressed store, hash-verified

184}
185
186func (t *cmdProxy) handleShutdown(d map[string]interface{}) {
187 c := t.newProxyClient(true)
188
189 log.Debugf("call rpc shutdown to proxy %s", t.addr)
190 if err := c.Shutdown(); err != nil {
191 log.PanicErrorf(err, "call rpc shutdown to proxy %s failed", t.addr)
192 }
193 log.Debugf("call rpc shutdown OK")
194}

Callers 1

MainMethod · 0.95

Calls 4

newProxyClientMethod · 0.95
DebugfMethod · 0.80
PanicErrorfMethod · 0.80
ShutdownMethod · 0.45

Tested by

no test coverage detected