func (s *Services) AddService(service *Service) {
	s.mu.Lock()
	defer s.mu.Unlock()

	added, _ := s.addedPerType[service.Type]
	for _, ch := range append(added, s.allAdded...) {
		ch <- service
	}
}
// AddService sends a new service to all the channels that registered.
AddService sends a new service to all the channels that registered.
// AddService sends a new service to all the channels that registered .
func (s *Services) AddService(service *Service) {
	s.mu.Lock()
	defer s.mu.Unlock()
	added, _ := s.addedPerType[service.Type]
	for _, ch := range append(added, s.allAdded...) {
		ch <- service
	}
}
func ( s * Services ) AddService ( service * Service ) { s . mu . Lock ( ) defer s . mu . Unlock ( ) added , _ := s . addedPerType [ service . Type ] for _ , ch := range append ( added , s . allAdded ... ) { ch <- service } }
AddService sends a new service to all the channels that registered.
AddService sends a new service to all the channels that registered .