mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 15:19:53 +01:00
Message queue manager should be a singleton.
This commit is contained in:
@@ -14,6 +14,8 @@ import org.briarproject.api.sync.GroupFactory;
|
|||||||
import org.briarproject.api.sync.MessageFactory;
|
import org.briarproject.api.sync.MessageFactory;
|
||||||
import org.briarproject.api.sync.ValidationManager;
|
import org.briarproject.api.sync.ValidationManager;
|
||||||
|
|
||||||
|
import javax.inject.Singleton;
|
||||||
|
|
||||||
import dagger.Module;
|
import dagger.Module;
|
||||||
import dagger.Provides;
|
import dagger.Provides;
|
||||||
|
|
||||||
@@ -36,6 +38,7 @@ public class ClientsModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
|
@Singleton
|
||||||
MessageQueueManager provideMessageQueueManager(DatabaseComponent db,
|
MessageQueueManager provideMessageQueueManager(DatabaseComponent db,
|
||||||
ClientHelper clientHelper, QueueMessageFactory queueMessageFactory,
|
ClientHelper clientHelper, QueueMessageFactory queueMessageFactory,
|
||||||
ValidationManager validationManager) {
|
ValidationManager validationManager) {
|
||||||
|
|||||||
Reference in New Issue
Block a user