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

Method update_draft_chunk_status

crates/openshell-server/src/policy_store.rs:241–260  ·  view source on GitHub ↗
(
        &self,
        id: &str,
        status: &str,
        decided_at_ms: Option<i64>,
        rejection_reason: Option<&str>,
    )

Source from the content-addressed store, hash-verified

239 }
240
241 async fn update_draft_chunk_status(
242 &self,
243 id: &str,
244 status: &str,
245 decided_at_ms: Option<i64>,
246 rejection_reason: Option<&str>,
247 ) -> PersistenceResult<bool> {
248 match self {
249 Self::Postgres(store) => {
250 store
251 .update_draft_chunk_status(id, status, decided_at_ms, rejection_reason)
252 .await
253 }
254 Self::Sqlite(store) => {
255 store
256 .update_draft_chunk_status(id, status, decided_at_ms, rejection_reason)
257 .await
258 }
259 }
260 }
261
262 async fn update_draft_chunk_rule(
263 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected