hexresearch / hschain

Other
4 stars 0 forks source link

Use Shepherd for tracking lifetime of threads #539

Closed Shimuuar closed 4 years ago

Shimuuar commented 4 years ago

This change is to separate concerns of keep track of tread lifetimes and ensuring that we don't leak threads and FDs and keeping track of known/unknown network addresses. This change allows to simplify PeerRegistry quite a bit and allow to change it with less problems in the future