Message queue manager should be a singleton.

parent 20c8cacd
......@@ -14,6 +14,8 @@ import org.briarproject.api.sync.GroupFactory;
import org.briarproject.api.sync.MessageFactory;
import org.briarproject.api.sync.ValidationManager;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
......@@ -36,6 +38,7 @@ public class ClientsModule {
}
@Provides
@Singleton
MessageQueueManager provideMessageQueueManager(DatabaseComponent db,
ClientHelper clientHelper, QueueMessageFactory queueMessageFactory,
ValidationManager validationManager) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment