Refactor push messaging (#5861)

This commit is contained in:
andig 2023-01-21 11:34:15 +01:00 • committed by GitHub
parent ad9a5d0fed
commit e7d89fa595
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 150 additions and 243 deletions

View file

@ -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)
}