(path: PathBuf, namespace_id: String)
| 15 | |
| 16 | impl 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)?; |
nothing calls this directly
no outgoing calls
no test coverage detected