Skip to content

Commit e89cf5a

Browse files
refactor: use set_lookahead in set_lookahead_for_all
1 parent 2867e88 commit e89cf5a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/chain/src/keychain/txout_index.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ impl<K: Clone + Ord + Debug> KeychainTxOutIndex<K> {
192192
/// [`set_lookahead`]: Self::set_lookahead
193193
pub fn set_lookahead_for_all(&mut self, lookahead: u32) {
194194
for keychain in &self.keychains.keys().cloned().collect::<Vec<_>>() {
195-
self.lookahead.insert(keychain.clone(), lookahead);
196-
self.replenish_lookahead(keychain);
195+
self.set_lookahead(keychain, lookahead);
197196
}
198197
}
199198

0 commit comments

Comments
 (0)