diff --git a/src/main/java/it/cavallium/rockserver/core/client/EmbeddedConnection.java b/src/main/java/it/cavallium/rockserver/core/client/EmbeddedConnection.java index 88b6e22..826226b 100644 --- a/src/main/java/it/cavallium/rockserver/core/client/EmbeddedConnection.java +++ b/src/main/java/it/cavallium/rockserver/core/client/EmbeddedConnection.java @@ -34,7 +34,7 @@ public class EmbeddedConnection extends BaseConnection implements RocksDBAPI { public EmbeddedConnection(@Nullable Path path, String name, @Nullable Path embeddedConfig) throws IOException { super(name); this.db = new EmbeddedDB(path, name, embeddedConfig); - this.exeuctor = Executors.newVirtualThreadPerTaskExecutor(); + this.exeuctor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()); } @Override