Skip to content

Commit a6dd842

Browse files
committed
add doc comment to max_concurrent_fetches
1 parent 846f8d7 commit a6dd842

File tree

1 file changed

+5
-0
lines changed
  • src/event_scanner/scanner

1 file changed

+5
-0
lines changed

src/event_scanner/scanner/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,34 @@ pub struct Unspecified;
2929
pub struct Historic {
3030
pub(crate) from_block: BlockId,
3131
pub(crate) to_block: BlockId,
32+
/// Controls how many log-fetching RPC requests can run in parallel during the scan.
3233
pub(crate) max_concurrent_fetches: usize,
3334
}
3435
pub struct Live {
3536
pub(crate) block_confirmations: u64,
37+
/// Controls how many log-fetching RPC requests can run in parallel during the scan.
3638
pub(crate) max_concurrent_fetches: usize,
3739
}
3840
pub struct LatestEvents {
3941
pub(crate) count: usize,
4042
pub(crate) from_block: BlockId,
4143
pub(crate) to_block: BlockId,
4244
pub(crate) block_confirmations: u64,
45+
/// Controls how many log-fetching RPC requests can run in parallel during the scan.
4346
pub(crate) max_concurrent_fetches: usize,
4447
}
4548
#[derive(Default)]
4649
pub struct Synchronize;
4750
pub struct SyncFromLatestEvents {
4851
pub(crate) count: usize,
4952
pub(crate) block_confirmations: u64,
53+
/// Controls how many log-fetching RPC requests can run in parallel during the scan.
5054
pub(crate) max_concurrent_fetches: usize,
5155
}
5256
pub struct SyncFromBlock {
5357
pub(crate) from_block: BlockId,
5458
pub(crate) block_confirmations: u64,
59+
/// Controls how many log-fetching RPC requests can run in parallel during the scan.
5560
pub(crate) max_concurrent_fetches: usize,
5661
}
5762

0 commit comments

Comments
 (0)