update "moonfire-nvr check" for new schema

This commit is contained in:
Scott Lamb
2018-03-01 17:07:42 -08:00
parent b677964d1a
commit b2a8b3c216
6 changed files with 284 additions and 154 deletions

View File

@@ -902,7 +902,7 @@ impl<'a> Drop for Writer<'a> {
/// Parse a composite id filename.
///
/// These are exactly 16 bytes, lowercase hex.
fn parse_id(id: &[u8]) -> Result<CompositeId, ()> {
pub(crate) fn parse_id(id: &[u8]) -> Result<CompositeId, ()> {
if id.len() != 16 {
return Err(());
}