Skip to content

Commit 8561858

Browse files
Merge pull request #346 from libp2p/1.1.0
1.1.0 Release
2 parents 433d0b1 + 2e441b7 commit 8561858

42 files changed

Lines changed: 2461 additions & 358 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
* text eol=lf
1+
* text eol=lf
2+
*.bat text eol=crlf
3+
*.png binary

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ List of components in the Libp2p spec and their JVM implementation status
2727
| **Protocol Select** | [multistream](https://github.com/multiformats/multistream-select) | :green_apple: |
2828
| **Stream Multiplexing** | [yamux](https://github.com/libp2p/specs/blob/master/yamux/README.md) | :lemon: |
2929
| | [mplex](https://github.com/libp2p/specs/blob/master/mplex/README.md) | :green_apple: |
30-
| **NAT Traversal** | [circuit-relay-v2](https://github.com/libp2p/specs/blob/master/relay/circuit-v2.md) | |
30+
| **NAT Traversal** | [circuit-relay-v2](https://github.com/libp2p/specs/blob/master/relay/circuit-v2.md) | :lemon: |
3131
| | [autonat](https://github.com/libp2p/specs/tree/master/autonat) | |
3232
| | [hole-punching](https://github.com/libp2p/specs/blob/master/connections/hole-punching.md) | |
3333
| **Discovery** | [bootstrap](https://github.com/libp2p/specs/blob/master/kad-dht/README.md#bootstrap-process) | |

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ configure(
3737
}
3838
) {
3939
group = "io.libp2p"
40-
version = "1.0.1-RELEASE"
40+
version = "1.1.0-RELEASE"
4141

4242
apply(plugin = "kotlin")
4343
apply(plugin = "idea")

gradlew.bat

Lines changed: 89 additions & 89 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libp2p/src/main/java/io/libp2p/core/dsl/HostBuilder.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ public final HostBuilder listen(String... addresses) {
6262
return this;
6363
}
6464

65+
public final HostBuilder builderModifier(Consumer<BuilderJ> builderModifier) {
66+
this.builderModifier = builderModifier;
67+
return this;
68+
}
69+
70+
@SuppressWarnings("unchecked")
6571
public Host build() {
6672
return BuilderJKt.hostJ(
6773
defaultMode_.asBuilderDefault(),
@@ -74,6 +80,7 @@ public Host build() {
7480
muxers_.forEach(m -> b.getMuxers().add(m.get()));
7581
b.getProtocols().addAll(protocols_);
7682
listenAddresses_.forEach(a -> b.getNetwork().listen(a));
83+
builderModifier.accept(b);
7784
});
7885
} // build
7986

@@ -84,4 +91,5 @@ public Host build() {
8491
private List<Supplier<StreamMuxerProtocol>> muxers_ = new ArrayList<>();
8592
private List<ProtocolBinding<?>> protocols_ = new ArrayList<>();
8693
private List<String> listenAddresses_ = new ArrayList<>();
94+
private Consumer<BuilderJ> builderModifier = b -> {};
8795
}

0 commit comments

Comments
 (0)