Commit a7d2b6a
committed
Fix circular
In added logic to use the HRN resolver from
`bitcoin-payment-instructions`, we created a circular `Arc`
reference - the `LDKOnionMessageDNSSECHrnResolver` is used as a
handler for the `OnionMessenger` but we also set a
post-queue-action which holds a reference to the `PeerManager`.
As a result, after our `Node` instance is `stop`ped and the `Node`
`drop`ped, much of the node's memory will stick around, including
the `NetworkGraph`.
Here we fix this issue by using `Weak` pointers.Arc reference in HRN resolver action1 parent d8e33c1 commit a7d2b6a
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1597 | 1597 | | |
1598 | 1598 | | |
1599 | 1599 | | |
1600 | | - | |
1601 | | - | |
| 1600 | + | |
1602 | 1601 | | |
1603 | | - | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
1604 | 1605 | | |
1605 | 1606 | | |
1606 | 1607 | | |
| |||
0 commit comments