(node NodeId)
| 405 | } |
| 406 | |
| 407 | func (e *CentralCfg) IsClient(node NodeId) bool { |
| 408 | idx := slices.IndexFunc(e.Clients, func(cfg ClientCfg) bool { |
| 409 | return cfg.Id == node |
| 410 | }) |
| 411 | return idx != -1 |
| 412 | } |
| 413 | |
| 414 | func (e *CentralCfg) IsNode(node NodeId) bool { |
| 415 | return e.IsRouter(node) || e.IsClient(node) |
no outgoing calls
no test coverage detected