Skip to content

Commit

Permalink
protocols/gossipsub: Fix duplicate connection id (libp2p#2702)
Browse files Browse the repository at this point in the history
  • Loading branch information
ackintosh committed Jun 14, 2022
1 parent 2fd4998 commit c7c21b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions protocols/gossipsub/CHANGELOG.md
@@ -1,3 +1,9 @@
# 0.38.1

- Fix duplicate connection id. See [PR 2702].

[PR 2702]: https://github.com/libp2p/rust-libp2p/pull/2702

# 0.38.0

- Update to `libp2p-core` `v0.33.0`.
Expand Down
2 changes: 1 addition & 1 deletion protocols/gossipsub/Cargo.toml
Expand Up @@ -3,7 +3,7 @@ name = "libp2p-gossipsub"
edition = "2021"
rust-version = "1.56.1"
description = "Gossipsub protocol for libp2p"
version = "0.38.0"
version = "0.38.1"
authors = ["Age Manning <Age@AgeManning.com>"]
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"
Expand Down
2 changes: 1 addition & 1 deletion protocols/gossipsub/src/behaviour.rs
Expand Up @@ -3104,7 +3104,7 @@ where
.entry(*peer_id)
.or_insert(PeerConnections {
kind: PeerKind::Floodsub,
connections: vec![*connection_id],
connections: vec![],
})
.connections
.push(*connection_id);
Expand Down

0 comments on commit c7c21b1

Please sign in to comment.