Skip to content

Commit 2b88a31

Browse files
Remove vertx (#10038)
Co-authored-by: Paul Harris <paul.harris@consensys.net>
1 parent 63a7ee7 commit 2b88a31

File tree

7 files changed

+0
-20
lines changed

7 files changed

+0
-20
lines changed

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,6 @@ application {
557557
applicationName = "teku"
558558
getMainClass().set("tech.pegasys.teku.Teku")
559559
applicationDefaultJvmArgs = [
560-
"-Dvertx.disableFileCPResolving=true",
561560
"-Dteku.home=TEKU_HOME",
562561
// We shutdown log4j ourselves, as otherwise his shutdown hook runs before our own and whatever
563562
// happens during shutdown is not logged.

gradle/license-report-config/allowed-licenses.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@
112112
"moduleLicense": "Apache License, Version 2.0",
113113
"moduleLicenseUrl": "https://github.com/libp2p/jvm-libp2p/blob/develop/LICENSE-APACHE"
114114
},
115-
{
116-
"moduleName": "io.vertx",
117-
"moduleLicense": "Apache License, Version 2.0"
118-
},
119115
{
120116
"moduleName": "jakarta.activation:jakarta.activation-api",
121117
"moduleLicense": "Eclipse Distribution License - v 1.0"

gradle/versions.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,6 @@ dependencyManagement {
6969
entry 'netty-codec-http'
7070
}
7171

72-
dependencySet(group: 'io.vertx', version: '4.5.18') {
73-
entry 'vertx-codegen'
74-
entry 'vertx-core'
75-
entry 'vertx-unit'
76-
entry 'vertx-web'
77-
}
78-
dependency 'io.projectreactor:reactor-core:3.7.8'
79-
8072
dependency 'it.unimi.dsi:fastutil:8.5.16'
8173

8274
dependency 'javax.annotation:javax.annotation-api:1.3.2'

infrastructure/metrics/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ dependencies {
66
implementation project(':infrastructure:time')
77

88
implementation 'com.fasterxml.jackson.core:jackson-databind'
9-
implementation 'io.vertx:vertx-core'
10-
implementation 'io.vertx:vertx-web'
119
implementation 'io.consensys.tuweni:tuweni-units'
1210
implementation 'org.hdrhistogram:HdrHistogram'
1311
implementation 'org.hyperledger.besu.internal:besu-metrics-core'

networking/p2p/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ dependencies {
1919

2020
implementation 'io.libp2p:jvm-libp2p'
2121
implementation 'io.netty:netty-handler'
22-
implementation 'io.projectreactor:reactor-core'
2322
implementation 'io.consensys.tuweni:tuweni-units'
2423
implementation 'io.consensys.tuweni:tuweni-crypto'
2524
implementation 'tech.pegasys.discovery:discovery'

teku/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ dependencies {
5151
implementation 'com.squareup.okhttp3:okhttp'
5252
implementation 'info.picocli:picocli'
5353
implementation 'io.libp2p:jvm-libp2p'
54-
implementation 'io.vertx:vertx-core'
5554
implementation 'org.apache.logging.log4j:log4j-slf4j-impl'
5655
implementation 'org.apache.logging.log4j:log4j-slf4j2-impl'
5756
implementation 'io.consensys.tuweni:tuweni-ssz'

teku/src/main/java/tech/pegasys/teku/AbstractNode.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import static tech.pegasys.teku.networks.Eth2NetworkConfiguration.MAX_EPOCHS_STORE_BLOBS;
1919

2020
import com.google.common.util.concurrent.ThreadFactoryBuilder;
21-
import io.vertx.core.Vertx;
2221
import java.time.Duration;
2322
import java.util.Optional;
2423
import java.util.concurrent.ExecutorService;
@@ -53,7 +52,6 @@
5352
public abstract class AbstractNode implements Node {
5453
private static final Logger LOG = LogManager.getLogger();
5554

56-
private final Vertx vertx = Vertx.vertx();
5755
private final ExecutorService threadPool =
5856
Executors.newCachedThreadPool(
5957
new ThreadFactoryBuilder().setDaemon(true).setNameFormat("events-%d").build());
@@ -254,7 +252,6 @@ public void stop() {
254252
.thenCompose(__ -> metricsEndpoint.stop())
255253
.orTimeout(5, TimeUnit.SECONDS)
256254
.handleException(error -> LOG.debug("Failed to stop metrics", error))
257-
.thenRun(vertx::close)
258255
.join();
259256
}
260257
}

0 commit comments

Comments
 (0)