Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gossipsub): feature gate metrics related code #5711

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
21a7ffd
feature gate metrics related code
drHuangMHT Dec 4, 2024
906e5a0
reduce diff and fix test
drHuangMHT Dec 4, 2024
cc58400
Merge branch 'master' of https://github.com/libp2p/rust-libp2p into g…
drHuangMHT Dec 4, 2024
252bbdf
fix wrongly gated variable
drHuangMHT Dec 4, 2024
a0970e3
reduce diff
drHuangMHT Dec 4, 2024
b79e15d
fix borrowing rule violation
drHuangMHT Dec 4, 2024
871e36a
formatting
drHuangMHT Dec 4, 2024
c6ac3f4
sync new changes to scoring
drHuangMHT Dec 5, 2024
7d71e9c
refactor behaviour constructor
drHuangMHT Dec 5, 2024
efdf89a
refactor scoring
drHuangMHT Dec 5, 2024
0764628
remove unnecessary feature gates
drHuangMHT Dec 9, 2024
ee4b77f
remove unnecessary return
drHuangMHT Dec 9, 2024
343c6ae
remove duplication of remove_peer_from_mesh
drHuangMHT Dec 9, 2024
7add7b7
reorder cfg flags
drHuangMHT Dec 9, 2024
51d3559
remove unnecessary gates by reordering code
drHuangMHT Dec 9, 2024
6aef7a5
changelog
drHuangMHT Dec 10, 2024
08be1da
Merge branch 'master' into gossipsub-metric-feature
drHuangMHT Dec 20, 2024
11e7982
Merge branch 'master' into gossipsub-metric-feature
drHuangMHT Dec 25, 2024
58f60da
Merge branch 'master' of https://github.com/libp2p/rust-libp2p into g…
drHuangMHT Jan 19, 2025
5bbeefe
Merge branch 'master' into gossipsub-metric-feature
drHuangMHT Jan 22, 2025
3a81406
Merge branch 'master' into gossipsub-metric-feature
drHuangMHT Feb 5, 2025
b98464b
lock file fix attempt
drHuangMHT Feb 13, 2025
85e89a0
Merge branch 'master' into gossipsub-metric-feature
drHuangMHT Feb 13, 2025
e548e7e
manifest update
drHuangMHT Feb 25, 2025
be8bd11
Merge branch 'master' into gossipsub-metric-feature
drHuangMHT Feb 25, 2025
c09565b
lock file update
drHuangMHT Feb 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ libp2p-core = { version = "0.43.0", path = "core" }
libp2p-dcutr = { version = "0.13.0", path = "protocols/dcutr" }
libp2p-dns = { version = "0.43.0", path = "transports/dns" }
libp2p-floodsub = { version = "0.46.1", path = "protocols/floodsub" }
libp2p-gossipsub = { version = "0.48.1", path = "protocols/gossipsub" }
libp2p-gossipsub = { version = "0.49.0", path = "protocols/gossipsub" }
libp2p-identify = { version = "0.46.0", path = "protocols/identify" }
libp2p-identity = { version = "0.2.10" }
libp2p-kad = { version = "0.47.0", path = "protocols/kad" }
Expand Down
6 changes: 6 additions & 0 deletions protocols/gossipsub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
## 0.49.0

- Make `prometheus-client` an optional dependency with feature `metrics`.
See [PR 5711](https://github.com/libp2p/rust-libp2p/pull/5711).

## 0.48.1
- Improve `max_messages_per_rpc` consistency by ensuring RPC control messages also adhere to the existing limits.
See [PR 5826](https://github.com/libp2p/rust-libp2p/pull/5826)


## 0.48.0

- Allow broadcasting `IDONTWANT` messages when publishing to avoid downloading data that is already available.
Expand Down
5 changes: 3 additions & 2 deletions protocols/gossipsub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "libp2p-gossipsub"
edition = "2021"
rust-version = { workspace = true }
description = "Gossipsub protocol for libp2p"
version = "0.48.1"
version = "0.49.0"
authors = ["Age Manning <[email protected]>"]
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"
Expand All @@ -12,6 +12,7 @@ categories = ["network-programming", "asynchronous"]

[features]
wasm-bindgen = ["getrandom/js", "futures-timer/wasm-bindgen"]
metrics = ["prometheus-client"]

[dependencies]
async-channel = "2.3.1"
Expand Down Expand Up @@ -39,7 +40,7 @@ sha2 = "0.10.8"
tracing = { workspace = true }

# Metrics dependencies
prometheus-client = { workspace = true }
prometheus-client = { workspace = true, optional = true }

[dev-dependencies]
libp2p-core = { workspace = true }
Expand Down
Loading
Loading