runtime: switch executor to adapter registry
This commit is contained in:
@@ -51,6 +51,34 @@ impl RuntimeRequestContext {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<ResponseCacheScope> for crank_core::ResponseCacheScope {
|
||||
fn from(value: ResponseCacheScope) -> Self {
|
||||
Self {
|
||||
workspace_key: value.workspace_key,
|
||||
agent_key: value.agent_key,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<&ResponseCacheScope> for crank_core::ResponseCacheScope {
|
||||
fn from(value: &ResponseCacheScope) -> Self {
|
||||
Self {
|
||||
workspace_key: value.workspace_key.clone(),
|
||||
agent_key: value.agent_key.clone(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<&RuntimeRequestContext> for crank_core::RuntimeRequestContext {
|
||||
fn from(value: &RuntimeRequestContext) -> Self {
|
||||
Self {
|
||||
request_id: value.request_id.clone(),
|
||||
correlation_id: value.correlation_id.clone(),
|
||||
response_cache_scope: value.response_cache_scope.as_ref().map(Into::into),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::RuntimeRequestContext;
|
||||
|
||||
Reference in New Issue
Block a user