Skip to content

Commit

Permalink
Ensure any service threads are created as daemon threads (redo).
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Ferretti <cristianferretti@deephaven.io>
  • Loading branch information
jcferretti authored and lburgazzoli committed May 30, 2023
1 parent 80e2b38 commit 6c59cf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jetcd-core/src/main/java/io/etcd/jetcd/ClientBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
import com.google.common.collect.Streams;

/**
* ClientBuilder knows how to create an Client instance.
* ClientBuilder knows how to create a Client instance.
*/
public final class ClientBuilder implements Cloneable {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import io.grpc.stub.AbstractStub;
import io.netty.channel.ChannelOption;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import io.vertx.grpc.VertxChannelBuilder;

import com.google.common.util.concurrent.ListenableFuture;
Expand Down Expand Up @@ -174,7 +175,7 @@ ManagedChannelBuilder<?> defaultChannelBuilder(String target) {
throw new IllegalArgumentException("At least one endpoint should be provided");
}
if (vertx == null) {
vertx = Vertx.vertx();
vertx = Vertx.vertx(new VertxOptions().setUseDaemonThread(true));
}
final VertxChannelBuilder channelBuilder = VertxChannelBuilder.forTarget(vertx, target);

Expand Down

0 comments on commit 6c59cf6

Please sign in to comment.