]> git.bitcoin.ninja Git - rapid-gossip-sync-server/commit
Do DB insertions in parallel
authorMatt Corallo <git@bluematt.me>
Mon, 29 Jan 2024 17:24:32 +0000 (17:24 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 29 Jan 2024 17:43:55 +0000 (17:43 +0000)
commit1061d90e370d81dc4375be93ae62894ad8ab1ccf
treee7ce646513b277de1367d0bd267d432c4190f818
parente98acc1a90b78d9d426e0f5bdaf0e94318971c2f
Do DB insertions in parallel

When inserting new gossip into the DB, we block the LDK peer
handling if we get behind. This is mostly okay, but can cause ping
timeouts and reconnections, which isn't ideal. To limit how often
we should see this, here we move to doing the new gossip insertions
in parallel.
src/persistence.rs