Skip to content

Commit 5adfbe3

Browse files
singlerrStefanBratanov
authored andcommitted
fix: executed spotless apply
1 parent 460411e commit 5adfbe3

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ configure(
3636
}
3737
) {
3838
group = "io.libp2p"
39-
version = "develop"
39+
version = "1.2.6R-SNAPSHOT"
4040

4141
apply(plugin = "kotlin")
4242
apply(plugin = "idea")
@@ -164,6 +164,11 @@ configure(
164164
password = findProperty("cloudsmithApiKey") as String?
165165
}
166166
}
167+
168+
maven {
169+
name = "singlerr"
170+
url = uri(project.property("localMvnRepo").toString())
171+
}
167172
}
168173
if (hasProperty("mavenArtifactId")) {
169174
publications {

libp2p/src/main/java/io/libp2p/protocol/circuit/CircuitHopProtocol.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,17 +316,17 @@ public void onMessage(@NotNull Stream stream, Circuit.HopMessage msg) {
316316

317317
// connect these streams with time + bytes enforcement
318318
fromRequestor.pushHandler(new InboundTrafficLimitHandler(resv.maxBytes));
319-
if(resv.durationSeconds > 0){
319+
if (resv.durationSeconds > 0) {
320320
fromRequestor.pushHandler(
321-
new TotalTimeoutHandler(
322-
Duration.of(resv.durationSeconds, ChronoUnit.SECONDS)));
321+
new TotalTimeoutHandler(
322+
Duration.of(resv.durationSeconds, ChronoUnit.SECONDS)));
323323
}
324324

325325
toTarget.pushHandler(new InboundTrafficLimitHandler(resv.maxBytes));
326-
if(resv.durationSeconds > 0){
326+
if (resv.durationSeconds > 0) {
327327
toTarget.pushHandler(
328-
new TotalTimeoutHandler(
329-
Duration.of(resv.durationSeconds, ChronoUnit.SECONDS)));
328+
new TotalTimeoutHandler(
329+
Duration.of(resv.durationSeconds, ChronoUnit.SECONDS)));
330330
}
331331
fromRequestor.pushHandler(new ProxyHandler(toTarget));
332332
toTarget.pushHandler(new ProxyHandler(fromRequestor));

0 commit comments

Comments
 (0)