Use Bisq's UserThread.executor in gRPC server

This commit is contained in:
ghubstan 2020-12-11 18:33:19 -03:00
parent 259bad629a
commit 150e2f6851
No known key found for this signature in database
GPG Key ID: E35592D6800A861E

View File

@ -17,6 +17,7 @@
package bisq.daemon.grpc;
import bisq.common.UserThread;
import bisq.common.config.Config;
import io.grpc.Server;
@ -48,6 +49,7 @@ public class GrpcServer {
GrpcTradesService tradesService,
GrpcWalletsService walletsService) {
this.server = ServerBuilder.forPort(config.apiPort)
.executor(UserThread.getExecutor())
.addService(disputeAgentsService)
.addService(offersService)
.addService(paymentAccountsService)