Commit 5ac2e20
authored
fix(gossipsub): Improve
Currently, when a gossipsub [Rpc](https://github.com/libp2p/specs/blob/master/pubsub/gossipsub/gossipsub-v1.0.md#protobuf) is received, only the publish messages are being checked for `max_messages_per_rpc`.
This PR improves the config flag consistency by applying the check to the Control Messages as well.
Pull-Request: #5826.max_messages_per_rpc consistency1 parent 3ce976d commit 5ac2e20
File tree
5 files changed
+22
-6
lines changed- protocols/gossipsub
- src
5 files changed
+22
-6
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3245 | 3245 | | |
3246 | 3246 | | |
3247 | 3247 | | |
3248 | | - | |
3249 | | - | |
| 3248 | + | |
| 3249 | + | |
| 3250 | + | |
| 3251 | + | |
3250 | 3252 | | |
3251 | 3253 | | |
3252 | 3254 | | |
| |||
3260 | 3262 | | |
3261 | 3263 | | |
3262 | 3264 | | |
3263 | | - | |
| 3265 | + | |
| 3266 | + | |
| 3267 | + | |
| 3268 | + | |
| 3269 | + | |
| 3270 | + | |
| 3271 | + | |
| 3272 | + | |
| 3273 | + | |
| 3274 | + | |
| 3275 | + | |
3264 | 3276 | | |
3265 | 3277 | | |
3266 | 3278 | | |
| |||
0 commit comments