Commit 28fa068
authored
fix(gossipsub): Always construct mesh
There is a case where we subscribe to a topic but never create a mesh. This can happen for example when we set the mesh degree to 0, then we don't add any peers and the mesh never gets constructed. We then never send subscriptions to peers and essentially the subscription never existed.
This PR ensures the mesh is always constructed when the user subscribes.
This PR also improves the logging to downgrade some logs and remove unnecessary logs.
Pull-Request: #6100.1 parent 3f1ee1e commit 28fa068
2 files changed
+10
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | | - | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
523 | 522 | | |
524 | 523 | | |
525 | 524 | | |
| |||
548 | 547 | | |
549 | 548 | | |
550 | 549 | | |
551 | | - | |
552 | 550 | | |
553 | 551 | | |
554 | 552 | | |
| |||
978 | 976 | | |
979 | 977 | | |
980 | 978 | | |
981 | | - | |
982 | | - | |
983 | 979 | | |
984 | 980 | | |
985 | 981 | | |
986 | 982 | | |
987 | 983 | | |
988 | 984 | | |
989 | 985 | | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
990 | 989 | | |
991 | 990 | | |
992 | 991 | | |
| |||
1907 | 1906 | | |
1908 | 1907 | | |
1909 | 1908 | | |
1910 | | - | |
| 1909 | + | |
1911 | 1910 | | |
1912 | 1911 | | |
1913 | 1912 | | |
| |||
2087 | 2086 | | |
2088 | 2087 | | |
2089 | 2088 | | |
2090 | | - | |
2091 | 2089 | | |
2092 | 2090 | | |
2093 | 2091 | | |
| |||
2533 | 2531 | | |
2534 | 2532 | | |
2535 | 2533 | | |
2536 | | - | |
2537 | 2534 | | |
2538 | 2535 | | |
2539 | 2536 | | |
| |||
0 commit comments