Stop relying on a `Clone`able `NetworkGraph` ref in `DefaultRouter`
authorMatt Corallo <git@bluematt.me>
Tue, 23 Jan 2024 19:55:24 +0000 (19:55 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 23 Jan 2024 19:55:24 +0000 (19:55 +0000)
commit333bbc2ad8a59d00d781797f09e10c5ab3a73e13
tree8d94c57cc2288e8e7a8565b9be06103b67f3b53f
parent0253d69e3101e6b3c6b6c19e61a5ea639026322c
Stop relying on a `Clone`able `NetworkGraph` ref in `DefaultRouter`

While there's not really much harm in requiring a `Clone`able
reference (they almost always are), it does make our bindings
struggle a bit as they don't support multi-trait bounds (as it
would require synthesizing a new C trait, which the bindings don't
do automatically). Luckily, there's really no reason for it, and we
can just call the `DefaultMessageRouter` directly when we want to
route a message.
lightning/src/onion_message/messenger.rs
lightning/src/routing/router.rs