Commit f9374b8
committed
When removing
When deciding if we should remove a `PeerState` entry we want to
ensure we don't remove if there are pending updates in
`in_flight_monitor_updates`. Previously this was done with a simple
`in_flight_monitor_updates.is_empty()`, however this can prevent
removal of `PeerState` entries if a channel had an update at some
point (leaving an entry in the map) but the update was ultimately
completed.
Instead, we need to iterate over the entries in
`in_flight_monitor_updates` and decline to remove `PeerState`s only
if there is an entry for a pending update still in-flight.PeerState check for in-flight mon updates deeply1 parent aba57bb commit f9374b8
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1332 | 1332 | | |
1333 | 1333 | | |
1334 | 1334 | | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
1335 | 1340 | | |
1336 | 1341 | | |
1337 | 1342 | | |
| |||
1341 | 1346 | | |
1342 | 1347 | | |
1343 | 1348 | | |
1344 | | - | |
1345 | 1349 | | |
1346 | 1350 | | |
1347 | 1351 | | |
| |||
0 commit comments