Skip to content

Commit

Permalink
Move blocking readPair call to boundedElastic thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Arooba-git committed Jul 23, 2023
1 parent aeb4710 commit d2c426a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,14 @@ public Mono<MailboxCounters> getMailboxCountersReactive(Mailbox mailbox) {
}
return Mono.just(counters);
})
.doOnNext(counters -> readRepair(mailbox, counters));
.doOnNext(counters -> {
Mono.fromRunnable(() -> {
readRepair(mailbox, counters);
})
.subscribeOn(Schedulers.boundedElastic())
.subscribe();
});

}

public Mono<MailboxCounters> readMailboxCounters(CassandraId mailboxId) {
Expand Down

0 comments on commit d2c426a

Please sign in to comment.