Remove support for unused product interfaces (#24965)
We no longer rely on commands and hooks for products, so simplify this code.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
1de790a4fe
Коммит
2ba91e43b6
@@ -149,8 +149,6 @@ type Server struct {
|
||||
|
||||
products map[string]product.Product
|
||||
services map[product.ServiceKey]any
|
||||
|
||||
hooksManager *product.HooksManager
|
||||
}
|
||||
|
||||
func (s *Server) Store() store.Store {
|
||||
@@ -246,8 +244,6 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
return nil, errors.Wrapf(err, "unable to create teams service")
|
||||
}
|
||||
|
||||
s.hooksManager = product.NewHooksManager(s.GetMetrics())
|
||||
|
||||
// ensure app implements `product.UserService`
|
||||
var _ product.UserService = (*App)(nil)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user