Commit 62de5da
committed
connection-manager: use ConnStateId to identifiy connectionsm
We cannot use `ConnectionId` since it's unknown for some transitions,
while `ConnStateId` has the same life time as a connection inside the
connection-manager. The drawback is that it's might be more difficult
to associate it with a given `ConnectionId`. If this will be the case,
a trace needs to be wrapped in `WithName (Maybe (ConnectionId peerAddr))`
or something similar.1 parent 3b0e049 commit 62de5da
File tree
9 files changed
+141
-142
lines changed- ouroboros-network-framework
- sim-tests/Test/Ouroboros/Network
- Server2
- src/Ouroboros/Network/ConnectionManager
- testlib/Ouroboros/Network/ConnectionManager/Test
- ouroboros-network
- sim-tests-lib/Test/Ouroboros/Network
- Testnet
- src/Ouroboros/Network/Diffusion
9 files changed
+141
-142
lines changedLines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
649 | 650 | | |
650 | 651 | | |
651 | 652 | | |
652 | | - | |
653 | | - | |
| 653 | + | |
| 654 | + | |
654 | 655 | | |
655 | 656 | | |
656 | 657 | | |
| |||
783 | 784 | | |
784 | 785 | | |
785 | 786 | | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
| 787 | + | |
791 | 788 | | |
792 | 789 | | |
793 | 790 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
627 | 628 | | |
628 | 629 | | |
629 | 630 | | |
630 | | - | |
| 631 | + | |
631 | 632 | | |
632 | 633 | | |
633 | 634 | | |
| |||
2242 | 2243 | | |
2243 | 2244 | | |
2244 | 2245 | | |
2245 | | - | |
| 2246 | + | |
2246 | 2247 | | |
2247 | 2248 | | |
2248 | 2249 | | |
| |||
Lines changed: 89 additions & 83 deletions
Large diffs are not rendered by default.
Lines changed: 13 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | | - | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
153 | 154 | | |
154 | 155 | | |
155 | | - | |
156 | | - | |
| 156 | + | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
| 160 | + | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
163 | | - | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
890 | 890 | | |
891 | 891 | | |
892 | 892 | | |
893 | | - | |
894 | | - | |
| 893 | + | |
| 894 | + | |
895 | 895 | | |
896 | 896 | | |
897 | 897 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
253 | | - | |
| 254 | + | |
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
| |||
419 | 420 | | |
420 | 421 | | |
421 | 422 | | |
422 | | - | |
| 423 | + | |
423 | 424 | | |
424 | 425 | | |
425 | 426 | | |
| |||
597 | 598 | | |
598 | 599 | | |
599 | 600 | | |
600 | | - | |
| 601 | + | |
601 | 602 | | |
602 | 603 | | |
603 | 604 | | |
| |||
Lines changed: 21 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
376 | 377 | | |
377 | 378 | | |
378 | 379 | | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
389 | 383 | | |
390 | 384 | | |
391 | 385 | | |
| |||
2937 | 2931 | | |
2938 | 2932 | | |
2939 | 2933 | | |
2940 | | - | |
| 2934 | + | |
2941 | 2935 | | |
2942 | 2936 | | |
2943 | 2937 | | |
| |||
3084 | 3078 | | |
3085 | 3079 | | |
3086 | 3080 | | |
3087 | | - | |
| 3081 | + | |
3088 | 3082 | | |
3089 | 3083 | | |
3090 | 3084 | | |
| |||
3298 | 3292 | | |
3299 | 3293 | | |
3300 | 3294 | | |
3301 | | - | |
| 3295 | + | |
3302 | 3296 | | |
3303 | 3297 | | |
3304 | | - | |
| 3298 | + | |
3305 | 3299 | | |
3306 | 3300 | | |
3307 | 3301 | | |
| |||
3316 | 3310 | | |
3317 | 3311 | | |
3318 | 3312 | | |
3319 | | - | |
| 3313 | + | |
3320 | 3314 | | |
3321 | 3315 | | |
3322 | 3316 | | |
3323 | 3317 | | |
3324 | 3318 | | |
3325 | | - | |
| 3319 | + | |
3326 | 3320 | | |
3327 | | - | |
| 3321 | + | |
3328 | 3322 | | |
3329 | | - | |
| 3323 | + | |
3330 | 3324 | | |
3331 | 3325 | | |
3332 | | - | |
3333 | | - | |
| 3326 | + | |
| 3327 | + | |
| 3328 | + | |
3334 | 3329 | | |
3335 | 3330 | | |
3336 | 3331 | | |
3337 | | - | |
3338 | | - | |
| 3332 | + | |
| 3333 | + | |
3339 | 3334 | | |
3340 | 3335 | | |
3341 | 3336 | | |
| |||
4043 | 4038 | | |
4044 | 4039 | | |
4045 | 4040 | | |
4046 | | - | |
| 4041 | + | |
4047 | 4042 | | |
4048 | 4043 | | |
4049 | 4044 | | |
| |||
4171 | 4166 | | |
4172 | 4167 | | |
4173 | 4168 | | |
4174 | | - | |
| 4169 | + | |
4175 | 4170 | | |
4176 | 4171 | | |
4177 | 4172 | | |
| |||
4181 | 4176 | | |
4182 | 4177 | | |
4183 | 4178 | | |
4184 | | - | |
| 4179 | + | |
4185 | 4180 | | |
4186 | 4181 | | |
4187 | 4182 | | |
| |||
4193 | 4188 | | |
4194 | 4189 | | |
4195 | 4190 | | |
4196 | | - | |
| 4191 | + | |
4197 | 4192 | | |
4198 | 4193 | | |
4199 | 4194 | | |
| |||
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
921 | 922 | | |
922 | 923 | | |
923 | 924 | | |
924 | | - | |
| 925 | + | |
925 | 926 | | |
926 | 927 | | |
927 | 928 | | |
| |||
1289 | 1290 | | |
1290 | 1291 | | |
1291 | 1292 | | |
1292 | | - | |
1293 | | - | |
1294 | | - | |
1295 | | - | |
1296 | | - | |
| 1293 | + | |
1297 | 1294 | | |
1298 | 1295 | | |
1299 | 1296 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
191 | | - | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
0 commit comments