(node NodeId)
| 398 | } |
| 399 | |
| 400 | func (e *CentralCfg) IsRouter(node NodeId) bool { |
| 401 | idx := slices.IndexFunc(e.Routers, func(cfg RouterCfg) bool { |
| 402 | return cfg.Id == node |
| 403 | }) |
| 404 | return idx != -1 |
| 405 | } |
| 406 | |
| 407 | func (e *CentralCfg) IsClient(node NodeId) bool { |
| 408 | idx := slices.IndexFunc(e.Clients, func(cfg ClientCfg) bool { |
no outgoing calls
no test coverage detected