registered checks if a unit is registered in the manager.
(id ID)
| 121 | |
| 122 | // registered checks if a unit is registered in the manager. |
| 123 | func (m *Manager) registered(id ID) bool { |
| 124 | return m.units[id].status != StatusNotRegistered |
| 125 | } |
| 126 | |
| 127 | // Unit fetches a unit from the manager. If the unit does not exist, |
| 128 | // it returns the Unit zero-value as a placeholder unit, because |
no outgoing calls
no test coverage detected