MCPcopy Create free account
hub / github.com/encodeous/nylon / GetClient

Method GetClient

state/config.go:453–462  ·  view source on GitHub ↗
(node NodeId)

Source from the content-addressed store, hash-verified

451}
452
453func (e *CentralCfg) GetClient(node NodeId) ClientCfg {
454 idx := slices.IndexFunc(e.Clients, func(cfg ClientCfg) bool {
455 return cfg.Id == node
456 })
457 if idx == -1 {
458 panic("client " + string(node) + " not found")
459 }
460
461 return e.Clients[idx]
462}

Callers 1

CentralConfigValidatorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected