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

Method put_draft_chunk

crates/openshell-server/src/policy_store.rs:212–221  ·  view source on GitHub ↗
(
        &self,
        chunk: &DraftChunkRecord,
        dedup_key: Option<&str>,
    )

Source from the content-addressed store, hash-verified

210 }
211
212 async fn put_draft_chunk(
213 &self,
214 chunk: &DraftChunkRecord,
215 dedup_key: Option<&str>,
216 ) -> PersistenceResult<String> {
217 match self {
218 Self::Postgres(store) => store.put_draft_chunk(chunk, dedup_key).await,
219 Self::Sqlite(store) => store.put_draft_chunk(chunk, dedup_key).await,
220 }
221 }
222
223 async fn get_draft_chunk(&self, id: &str) -> PersistenceResult<Option<DraftChunkRecord>> {
224 match self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected