fix: Don't error if stream ends
tycho-indexer may exit with non-zero status when stream ends normally Not entirely confident in this commit - please double-check
This commit is contained in:
@@ -54,6 +54,8 @@ impl TychoRunner {
|
||||
&start_block.to_string(),
|
||||
"--stop-block",
|
||||
&(end_block + 2).to_string(), // +2 is to make up for the cache in the index side
|
||||
"--dci-plugin",
|
||||
"rpc",
|
||||
]);
|
||||
|
||||
if !all_accounts.is_empty() {
|
||||
@@ -81,8 +83,11 @@ impl TychoRunner {
|
||||
.wait()
|
||||
.into_diagnostic()
|
||||
.wrap_err("Failed to wait on Tycho indexer process")?;
|
||||
|
||||
// Note: tycho-indexer may exit with non-zero status when stream ends normally
|
||||
// This is expected behavior and should not be treated as an error
|
||||
if !status.success() {
|
||||
return Err(miette!("Process exited with non-zero status: {status}"));
|
||||
debug!("Tycho indexer process exited with status: {status}");
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user