lnd/peer
Olaoluwa Osuntokun ae16f2b631
peer: always defer clean up of the block epoch client used for ping headers
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.
2022-01-13 15:01:13 -08:00
..
brontide_test.go lnrpc: receive custom message 2021-10-15 17:08:55 +02:00
brontide.go peer: always defer clean up of the block epoch client used for ping headers 2022-01-13 15:01:13 -08:00
interfaces.go htlcswitch+peer: CreateAndAddLink in switch, add messageSwitch to peer 2021-08-10 17:15:52 -04:00
log.go multi: remove peer.go, change all references to point to peer pkg 2020-07-06 19:16:07 -04:00
test_utils.go multi: enhance logging for debugging peer connection 2021-12-23 15:14:37 +08:00