product/hooks: hooks service no longer requires channels service start (#21861)

Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2022-12-15 12:29:33 +03:00
коммит произвёл GitHub
родитель 8d90c7042f
Коммит f31380f577
2 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@@ -325,10 +325,6 @@ type hooksService struct {
}
func (s *hooksService) RegisterHooks(productID string, hooks any) error {
if s.ch.pluginsEnvironment == nil {
return errors.New("could not find plugins environment")
}
return s.ch.srv.hooksManager.AddProduct(productID, hooks)
}