Refactor push messaging (#5861)
This commit is contained in:
parent
ad9a5d0fed
commit
e7d89fa595
8 changed files with 150 additions and 243 deletions
|
|
@ -215,7 +215,7 @@ func configureMessengers(conf messagingConfig, cache *util.Cache) (chan push.Eve
|
|||
}
|
||||
|
||||
for _, service := range conf.Services {
|
||||
impl, err := push.NewMessengerFromConfig(service.Type, service.Other)
|
||||
impl, err := push.NewFromConfig(service.Type, service.Other)
|
||||
if err != nil {
|
||||
return messageChan, fmt.Errorf("failed configuring push service %s: %w", service.Type, err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue