feat: add timeouts to prevent indexer hang during sync operations #130
Annotations
2 warnings
cargo clippy:
src/slots_processor/mod.rs#L319
warning: useless use of `format!`
--> src/slots_processor/mod.rs:319:50
|
319 | ... .with_context(|| format!("Failed to sync forwarded block"))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"Failed to sync forwarded block".to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
= note: `#[warn(clippy::useless_format)]` on by default
|
cargo clippy:
src/indexer/mod.rs#L40
warning: the `Err`-variant returned from this function is very large
--> src/indexer/mod.rs:40:55
|
40 | pub fn try_new(env: &Environment, args: &Args) -> IndexerResult<Self> {
| ^^^^^^^^^^^^^^^^^^^
|
::: src/indexer/error.rs:17:5
|
17 | SyncingTaskError(#[from] IndexingError),
| --------------------------------------- the largest variant contains at least 192 bytes
...
21 | SyncingTaskMessageSendFailure(#[from] SendError<IndexerTaskMessage>),
| -------------------------------------------------------------------- the variant `SyncingTaskMessageSendFailure` contains at least 192 bytes
|
= help: try reducing the size of `indexer::error::IndexerError`, for example by boxing large elements or replacing it with `Box<indexer::error::IndexerError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
= note: `#[warn(clippy::result_large_err)]` on by default
|
Loading