MCPcopy Create free account
hub / github.com/carsonpo/haystackdb / new

Method new

src/services/commit.rs:17–20  ·  view source on GitHub ↗
(path: PathBuf, namespace_id: String)

Source from the content-addressed store, hash-verified

15
16impl CommitService {
17 pub fn new(path: PathBuf, namespace_id: String) -> io::Result<Self> {
18 let state = NamespaceState::new(path, namespace_id)?;
19 Ok(CommitService { state })
20 }
21
22 pub fn commit(&mut self) -> io::Result<()> {
23 let commits = self.state.wal.get_uncommitted(100000)?;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected