Skip to content

Commit ef28dc2

Browse files
committed
Use setThreadingModel to deploy worker verticle
1 parent 013e16d commit ef28dc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/glencoesoftware/omero/ms/pixelbuffer/PixelBufferMicroserviceVerticle.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import io.vertx.core.DeploymentOptions;
4949
import io.vertx.core.Handler;
5050
import io.vertx.core.Promise;
51+
import io.vertx.core.ThreadingModel;
5152
import io.vertx.core.buffer.Buffer;
5253
import io.vertx.core.eventbus.ReplyException;
5354
import io.vertx.core.http.HttpServer;
@@ -224,7 +225,7 @@ public void deploy(JsonObject config, Promise<Void> prom) {
224225
).orElse(DEFAULT_WORKER_POOL_SIZE);
225226
vertx.deployVerticle("omero:omero-ms-pixel-buffer-verticle",
226227
new DeploymentOptions()
227-
.setWorker(true)
228+
.setThreadingModel(ThreadingModel.WORKER)
228229
.setInstances(workerPoolSize)
229230
.setWorkerPoolName("pixel-buffer-pool")
230231
.setWorkerPoolSize(workerPoolSize)

0 commit comments

Comments
 (0)