Suggest faster ping in `PeerManager::timer_tick_occurred` docs
authorMatt Corallo <git@bluematt.me>
Wed, 4 Aug 2021 16:21:36 +0000 (16:21 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 9 Aug 2021 18:11:19 +0000 (18:11 +0000)
commit70653d0ccb52bcea57fb956770fa2d3940b5e0e6
tree01b00cb4d9545ecb9e5f8cbf50d95ee84872d5d3
parent09e167019589dcfc5ee9675ad243b337659eafc7
Suggest faster ping in `PeerManager::timer_tick_occurred` docs

This clarifies the docs for `PeerManager::timer_tick_occurred` to
note that the call rate is entirely up to the user, and also
suggests a faster ping rate of "once every five to ten seconds"
instead of "every 30 seconds". There isn't a lot of reason to want
to ping less often, and faster ping means we detect disconnects
sooner, which is important.
lightning/src/ln/peer_handler.rs