]> git.bitcoin.ninja Git - rust-lightning/commit
Reduce RwLock usage in public interface of NetworkGraph
authorMatt Corallo <git@bluematt.me>
Thu, 11 Jun 2020 19:23:35 +0000 (15:23 -0400)
committerMatt Corallo <git@bluematt.me>
Mon, 22 Jun 2020 17:42:28 +0000 (13:42 -0400)
commitc33a4442678a0b2f95bedc619190d091cd90fa45
tree13e744ff00494e02262b2d750ae2815a52a05c71
parent9e5800927a6bdc46e4119765f07d374732b43cc5
Reduce RwLock usage in public interface of NetworkGraph

This isn't a big difference in the API, but it avoids needing to
wrap a given NetworkGraph in a RwLock before passing it, which
makes it much easier to generate C bindings for.
lightning/src/ln/functional_test_utils.rs
lightning/src/routing/network_graph.rs