We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8700b17 commit 7c96c3eCopy full SHA for 7c96c3e
tests/common.rs
@@ -162,7 +162,7 @@ impl TestRunner {
162
&metrics,
163
Arc::clone(&config),
164
)));
165
- mempool.write().unwrap().update(&daemon)?;
+ Mempool::update(&mempool, &daemon)?;
166
167
let query = Arc::new(Query::new(
168
Arc::clone(&chain),
@@ -194,10 +194,9 @@ impl TestRunner {
194
195
pub fn sync(&mut self) -> Result<()> {
196
self.indexer.update(&self.daemon)?;
197
- let mut mempool = self.mempool.write().unwrap();
198
- mempool.update(&self.daemon)?;
+ Mempool::update(&self.mempool, &self.daemon)?;
199
// force an update for the mempool stats, which are normally cached
200
- mempool.update_backlog_stats();
+ self.mempool.write().unwrap().update_backlog_stats();
201
Ok(())
202
}
203
0 commit comments