You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by "chibenwa (via GitHub)" <gi...@apache.org> on 2023/03/23 06:42:29 UTC

[GitHub] [james-project] chibenwa commented on a diff in pull request #1500: JAMES-3885 Change username - migrate quotas

chibenwa commented on code in PR #1500:
URL: https://github.com/apache/james-project/pull/1500#discussion_r1145745979


##########
mailbox/api/src/main/java/org/apache/james/mailbox/quota/MaxQuotaManager.java:
##########
@@ -53,6 +53,10 @@ public interface MaxQuotaManager {
      */
     void setMaxStorage(QuotaRoot quotaRoot, QuotaSizeLimit maxStorageQuota) throws MailboxException;
 
+    default Publisher<Void> setMaxStorageReactive(QuotaRoot quotaRoot, QuotaSizeLimit maxStorageQuota) {
+        return Mono.fromRunnable(Throwing.runnable(() -> setMaxStorage(quotaRoot, maxStorageQuota)).sneakyThrow());

Review Comment:
   Please subscribe this on the blocking callwrapper scheduler



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org