mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
doc: a little bit more docs for hl_node ingestion
This commit is contained in:
@ -22,9 +22,15 @@ const HOURLY_SUBDIR: &str = "hourly";
|
|||||||
/// In normal situation, 0~1 blocks will be cached.
|
/// In normal situation, 0~1 blocks will be cached.
|
||||||
const CACHE_SIZE: u32 = 1000;
|
const CACHE_SIZE: u32 = 1000;
|
||||||
|
|
||||||
/// Block source that tails the local ingest directory for the HL node.
|
/// Block source that monitors the local ingest directory for the HL node.
|
||||||
///
|
///
|
||||||
/// Originally written at https://github.com/hl-archive-node/nanoreth/pull/7
|
/// In certain situations, the [hl-node][ref] may offer lower latency compared to S3.
|
||||||
|
/// This block source caches blocks from the HL node to minimize latency,
|
||||||
|
/// while still falling back to [super::LocalBlockSource] or [super::S3BlockSource] when needed.
|
||||||
|
///
|
||||||
|
/// Originally introduced in https://github.com/hl-archive-node/nanoreth/pull/7
|
||||||
|
///
|
||||||
|
/// [ref]: https://github.com/hyperliquid-dex/node
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct HlNodeBlockSource {
|
pub struct HlNodeBlockSource {
|
||||||
pub fallback: BlockSourceBoxed,
|
pub fallback: BlockSourceBoxed,
|
||||||
|
|||||||
Reference in New Issue
Block a user