Don't hold the `NetworkGraph` read lock across an await point
authorMatt Corallo <git@bluematt.me>
Sun, 16 Jul 2023 03:20:52 +0000 (03:20 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 16 Jul 2023 05:58:32 +0000 (05:58 +0000)
commitb57d5f95f8b5c22aa37e541754c385c2e05fcfb2
tree3dbb9c14fe2276889d443e518a33b7aac052c766
parentfec612f35dd0b83106b2a64904245f0dc9d76ace
Don't hold the `NetworkGraph` read lock across an await point

Holding the `NetworkGraph` read lock across a query await point
can cause a deadlock if another task tries to handle a gossip
message at the same time.
src/lookup.rs