(node NodeId)
| 451 | } |
| 452 | |
| 453 | func (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 | } |
no outgoing calls
no test coverage detected