Check if the growing segment should be sealed.
(&self)
| 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> { |
no test coverage detected