MCPcopy Index your code
hub / github.com/CodisLabs/codis / AutoOnlineWithFillSlots

Function AutoOnlineWithFillSlots

cmd/proxy/main.go:318–325  ·  view source on GitHub ↗
(p *proxy.Proxy, slots []*models.Slot)

Source from the content-addressed store, hash-verified

316}
317
318func AutoOnlineWithFillSlots(p *proxy.Proxy, slots []*models.Slot) {
319 if err := p.FillSlots(slots); err != nil {
320 log.PanicErrorf(err, "fill slots failed")
321 }
322 if err := p.Start(); err != nil {
323 log.PanicErrorf(err, "start proxy failed")
324 }
325}
326
327func OnlineProxy(p *proxy.Proxy, dashboard string) bool {
328 client := topom.NewApiClient(dashboard)

Callers 1

mainFunction · 0.85

Calls 3

PanicErrorfMethod · 0.80
FillSlotsMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected