[MM-47846] Execute Work Template (#22055)

Этот коммит содержится в:
Julien Tant
2023-01-25 10:24:01 -07:00
коммит произвёл GitHub
родитель 53938167f8
Коммит 753ee85c6b
24 изменённых файлов: 1710 добавлений и 380 удалений

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

@@ -137,6 +137,7 @@ type Server struct {
tracer *tracing.Tracer
products map[string]product.Product
services map[product.ServiceKey]any
hooksManager *product.HooksManager
}
@@ -164,6 +165,7 @@ func NewServer(options ...Option) (*Server, error) {
LocalRouter: localRouter,
timezones: timezones.New(),
products: make(map[string]product.Product),
services: make(map[product.ServiceKey]any),
}
for _, option := range options {
@@ -262,6 +264,7 @@ func NewServer(options ...Option) (*Server, error) {
if err != nil {
return nil, errors.Wrap(err, "failed to initialize products")
}
s.services = serviceMap
// After channel is initialized set it to the App object
channelsWrapper, ok := serviceMap[product.ChannelKey].(*channelsWrapper)