Skip to content

Commit

Permalink
Quick fix: memory provider selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Florimond committed Dec 18, 2023
1 parent 8d839e0 commit 53069df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/broker/service.go
Expand Up @@ -156,7 +156,11 @@ func NewService(ctx context.Context, cfg *config.Config) (s *Service, err error)
s.surveyor = survey.New(s.pubsub, s.cluster)
s.presence = presence.New(s, s.pubsub, s.surveyor, s.subscriptions)
if s.cluster != nil {
s.surveyor.HandleFunc(s.presence, ssdstore, memstore)
if s.storage.Name() == ssdstore.Name() {
s.surveyor.HandleFunc(s.presence, ssdstore)
} else if s.storage.Name() == memstore.Name() {
s.surveyor.HandleFunc(s.presence, memstore)
}
}

// Create a new cipher from the licence provided
Expand Down

0 comments on commit 53069df

Please sign in to comment.