huskies: merge 984
This commit is contained in:
@@ -95,8 +95,13 @@ pub async fn run(
|
||||
if let Some(mut crdt_rx) = crdt_state::subscribe() {
|
||||
tokio::spawn(async move {
|
||||
while let Ok(evt) = crdt_rx.recv().await {
|
||||
if matches!(evt.to_stage, crate::pipeline_state::Stage::Archived { .. })
|
||||
&& let Some(root) = crdt_prune_root.as_ref().cloned()
|
||||
if matches!(
|
||||
evt.to_stage,
|
||||
crate::pipeline_state::Stage::Archived { .. }
|
||||
| crate::pipeline_state::Stage::Abandoned { .. }
|
||||
| crate::pipeline_state::Stage::Superseded { .. }
|
||||
| crate::pipeline_state::Stage::Rejected { .. }
|
||||
) && let Some(root) = crdt_prune_root.as_ref().cloned()
|
||||
{
|
||||
let story_id = evt.story_id.clone();
|
||||
tokio::spawn(async move {
|
||||
|
||||
Reference in New Issue
Block a user