This commit is contained in:
2024-03-12 09:54:29 +00:00
parent d3cb7c8bf6
commit 13cb456f89
2 changed files with 15 additions and 12 deletions

View File

@ -12,9 +12,10 @@ impl PipelineRunner {
pub async fn push(&mut self, bytes: bytes::Bytes) -> Result<(), anyhow::Error> {
let mut output = PipelinePayload::Bytes(bytes);
for step in &mut self.steps {
let output2 = step.process(output).await?;
//info!("{} result: {:?}", step.name(), output2);
output = output2;
match step.process(output).await? {
Some(pkg) => output = pkg,
None => break,
}
}
Ok(())
}