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

Method handleShutdown

cmd/admin/dashboard.go:184–192  ·  view source on GitHub ↗
(d map[string]interface{})

Source from the content-addressed store, hash-verified

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

Callers 1

MainMethod · 0.95

Calls 4

newTopomClientMethod · 0.95
DebugfMethod · 0.80
PanicErrorfMethod · 0.80
ShutdownMethod · 0.45

Tested by

no test coverage detected