You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2022/09/19 02:58:31 UTC

[james-project] 06/07: JAMES-3816 Start nested IMAP requests without switching threads

This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 5b6b9accf45be1efd47a50f7e54a85c2ed9b37bd
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Fri Sep 16 21:50:30 2022 +0700

    JAMES-3816 Start nested IMAP requests without switching threads
    
    Not needed
---
 .../main/java/org/apache/james/imapserver/netty/ReactiveThrottler.java  | 2 --
 1 file changed, 2 deletions(-)

diff --git a/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/ReactiveThrottler.java b/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/ReactiveThrottler.java
index 2a53e4a58b..22d4b5acc5 100644
--- a/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/ReactiveThrottler.java
+++ b/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/ReactiveThrottler.java
@@ -28,7 +28,6 @@ import org.reactivestreams.Publisher;
 
 import reactor.core.publisher.Mono;
 import reactor.core.publisher.Sinks;
-import reactor.core.scheduler.Schedulers;
 
 public class ReactiveThrottler {
     public static class RejectedException extends RuntimeException {
@@ -84,7 +83,6 @@ public class ReactiveThrottler {
         if (throttled != null) {
             Mono.from(throttled)
                 .doFinally(any -> onRequestDone())
-                .subscribeOn(Schedulers.parallel())
                 .subscribe();
         }
     }


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