This is an automated email from the ASF dual-hosted git repository. rcordier pushed a commit to branch postgresql in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 7ce58fba3aa77db5463a5fc6021d3ab172d91feb Author: Tung Tran <[email protected]> AuthorDate: Tue Dec 5 11:06:01 2023 +0700 JAMES-2586 Fix missing guice binding for Postgres quota module --- .../james/mailbox/postgres/quota/PostgresCurrentQuotaManager.java | 1 - .../main/java/org/apache/james/modules/mailbox/PostgresQuotaModule.java | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mailbox/postgres/src/main/java/org/apache/james/mailbox/postgres/quota/PostgresCurrentQuotaManager.java b/mailbox/postgres/src/main/java/org/apache/james/mailbox/postgres/quota/PostgresCurrentQuotaManager.java index 9e44f7ab92..e18faa6d8b 100644 --- a/mailbox/postgres/src/main/java/org/apache/james/mailbox/postgres/quota/PostgresCurrentQuotaManager.java +++ b/mailbox/postgres/src/main/java/org/apache/james/mailbox/postgres/quota/PostgresCurrentQuotaManager.java @@ -43,7 +43,6 @@ public class PostgresCurrentQuotaManager implements CurrentQuotaManager { private final PostgresQuotaCurrentValueDAO currentValueDao; @Inject - public PostgresCurrentQuotaManager(PostgresQuotaCurrentValueDAO currentValueDao) { this.currentValueDao = currentValueDao; } diff --git a/server/container/guice/mailbox-postgres/src/main/java/org/apache/james/modules/mailbox/PostgresQuotaModule.java b/server/container/guice/mailbox-postgres/src/main/java/org/apache/james/modules/mailbox/PostgresQuotaModule.java index 19894e74af..8e7ea84e28 100644 --- a/server/container/guice/mailbox-postgres/src/main/java/org/apache/james/modules/mailbox/PostgresQuotaModule.java +++ b/server/container/guice/mailbox-postgres/src/main/java/org/apache/james/modules/mailbox/PostgresQuotaModule.java @@ -20,6 +20,7 @@ package org.apache.james.modules.mailbox; import org.apache.james.backends.postgres.PostgresModule; +import org.apache.james.backends.postgres.quota.PostgresQuotaCurrentValueDAO; import org.apache.james.events.EventListener; import org.apache.james.mailbox.postgres.quota.PostgresCurrentQuotaManager; import org.apache.james.mailbox.postgres.quota.PostgresPerUserMaxQuotaManager; @@ -48,6 +49,7 @@ public class PostgresQuotaModule extends AbstractModule { bind(DefaultUserQuotaRootResolver.class).in(Scopes.SINGLETON); bind(PostgresPerUserMaxQuotaManager.class).in(Scopes.SINGLETON); bind(StoreQuotaManager.class).in(Scopes.SINGLETON); + bind(PostgresQuotaCurrentValueDAO.class).in(Scopes.SINGLETON); bind(PostgresCurrentQuotaManager.class).in(Scopes.SINGLETON); bind(UserQuotaRootResolver.class).to(DefaultUserQuotaRootResolver.class); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
