MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / handle_reject_draft_chunk

Function handle_reject_draft_chunk

crates/openshell-server/src/grpc/policy.rs:2620–2629  ·  view source on GitHub ↗
(
    state: &Arc<ServerState>,
    request: Request<RejectDraftChunkRequest>,
)

Source from the content-addressed store, hash-verified

2618}
2619
2620pub(super) async fn handle_reject_draft_chunk(
2621 state: &Arc<ServerState>,
2622 request: Request<RejectDraftChunkRequest>,
2623) -> Result<Response<RejectDraftChunkResponse>, Status> {
2624 let result = handle_reject_draft_chunk_inner(state, request).await;
2625 if result.is_err() {
2626 emit_policy_decision_failure(PolicyDecisionOperation::Reject, 1);
2627 }
2628 result
2629}
2630
2631async fn handle_reject_draft_chunk_inner(
2632 state: &Arc<ServerState>,

Tested by

no test coverage detected