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

Method handleReload

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

Source from the content-addressed store, hash-verified

192}
193
194func (t *cmdDashboard) handleReload(d map[string]interface{}) {
195 c := t.newTopomClient()
196
197 log.Debugf("call rpc reload to dashboard %s", t.addr)
198 if err := c.Reload(); err != nil {
199 log.PanicErrorf(err, "call rpc reload to dashboard %s failed", t.addr)
200 }
201 log.Debugf("call rpc reload OK")
202}
203
204func (t *cmdDashboard) handleSlotsCommand(d map[string]interface{}) {
205 c := t.newTopomClient()

Callers 1

MainMethod · 0.95

Calls 4

newTopomClientMethod · 0.95
DebugfMethod · 0.80
PanicErrorfMethod · 0.80
ReloadMethod · 0.65

Tested by

no test coverage detected