Move freshness response construction into bridge
This commit is contained in:
parent
3a57868bf1
commit
959c5e0bd3
6 changed files with 17 additions and 6 deletions
|
|
@ -41,6 +41,7 @@ use crate::jobs::map_epiphany_jobs;
|
|||
use crate::pressure::derive_epiphany_pressure;
|
||||
use crate::protocol_edge::protocol_context_params_to_core;
|
||||
use crate::protocol_edge::protocol_distill_params_to_core;
|
||||
use crate::protocol_edge::protocol_freshness_response_from_surface;
|
||||
use crate::protocol_edge::protocol_graph_query_to_core;
|
||||
use crate::protocol_edge::protocol_job_from_surface;
|
||||
use crate::protocol_edge::protocol_pressure_from_core;
|
||||
|
|
@ -93,6 +94,12 @@ pub fn derive_epiphany_freshness_surface(
|
|||
}
|
||||
}
|
||||
|
||||
pub fn map_epiphany_freshness_response(
|
||||
input: EpiphanyFreshnessResponseInput<'_>,
|
||||
) -> ThreadEpiphanyFreshnessResponse {
|
||||
protocol_freshness_response_from_surface(derive_epiphany_freshness_surface(input))
|
||||
}
|
||||
|
||||
pub fn map_epiphany_context_response(
|
||||
thread_id: String,
|
||||
loaded: bool,
|
||||
|
|
|
|||
Reference in a new issue