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

Method update_draft_chunk_rule

crates/openshell-server/src/policy_store.rs:262–271  ·  view source on GitHub ↗
(
        &self,
        id: &str,
        proposed_rule: &[u8],
    )

Source from the content-addressed store, hash-verified

260 }
261
262 async fn update_draft_chunk_rule(
263 &self,
264 id: &str,
265 proposed_rule: &[u8],
266 ) -> PersistenceResult<bool> {
267 match self {
268 Self::Postgres(store) => store.update_draft_chunk_rule(id, proposed_rule).await,
269 Self::Sqlite(store) => store.update_draft_chunk_rule(id, proposed_rule).await,
270 }
271 }
272
273 async fn delete_draft_chunks(&self, sandbox_id: &str, status: &str) -> PersistenceResult<u64> {
274 match self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected