MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / needs_seal

Method needs_seal

nodedb-vector/src/collection/lifecycle.rs:150–152  ·  view source on GitHub ↗

Check if the growing segment should be sealed.

(&self)

Source from the content-addressed store, hash-verified

148
149 /// Check if the growing segment should be sealed.
150 pub fn needs_seal(&self) -> bool {
151 self.growing.len() >= self.seal_threshold
152 }
153
154 /// Seal the growing segment and return a build request.
155 pub fn seal(&mut self, key: &str) -> Option<BuildRequest> {

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected