DRY ChannelError conversion macros
authorMatt Corallo <git@bluematt.me>
Thu, 18 Mar 2021 22:23:05 +0000 (18:23 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 21 May 2021 15:10:45 +0000 (15:10 +0000)
commit75e480eb4852b2fe87e942e1931bc19429f8c6c4
treed2e4c09f364be9175f9c2a8deda7aa6664fa0de9
parentb2cb1fb5338e9469ec5dc2420a3c3ec94f047388
DRY ChannelError conversion macros

Both break_chan_entry and try_chan_entry do almost identical work,
only differing on if they `break` or `return` in response to an
error. Because we will now also need an option to do neither, we
break out the common code into a shared `convert_chan_err` macro.
lightning/src/ln/channelmanager.rs