mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 05:45:21 +01:00
ae16f2b631
In this commit, we fix an inadvertent memory leak by ensuring we always use `defer` to clean up the allocated objects/memory we use to be notified of new blocks to update what we send within the set of ping headers. A further optimization here would be using a single global block epoch housed within the server, that all peer `pingHandler` goroutines use directly. Fixes #6143. |
||
---|---|---|
.. | ||
brontide_test.go | ||
brontide.go | ||
interfaces.go | ||
log.go | ||
test_utils.go |