Return memory patch candidates from propose
This commit is contained in:
parent
d1d7291a82
commit
09238eb623
8 changed files with 125 additions and 8 deletions
|
|
@ -546,15 +546,19 @@ pub fn map_epiphany_propose_response(
|
|||
})
|
||||
.map_err(|err| err.to_string())?;
|
||||
|
||||
let graph_frontier = proposal
|
||||
.memory_patch_candidates
|
||||
.is_empty()
|
||||
.then_some(proposal.graph_frontier);
|
||||
Ok(ThreadEpiphanyProposeResponse {
|
||||
expected_revision,
|
||||
patch: ThreadEpiphanyUpdatePatch {
|
||||
observations: vec![proposal.observation],
|
||||
evidence: vec![proposal.evidence],
|
||||
graphs: Some(proposal.graphs),
|
||||
graph_frontier: Some(proposal.graph_frontier),
|
||||
graph_frontier,
|
||||
churn: Some(proposal.churn),
|
||||
..Default::default()
|
||||
},
|
||||
memory_patch_candidates: proposal.memory_patch_candidates,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue