From d610051f1086d4914b052d1899f98a01cde50333 Mon Sep 17 00:00:00 2001 From: Anatoly Yakovenko Date: Wed, 16 May 2018 23:21:41 -0700 Subject: [PATCH] fixed --- src/crdt.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/crdt.rs b/src/crdt.rs index f3e8956d84a41e..2dccd92f593de5 100644 --- a/src/crdt.rs +++ b/src/crdt.rs @@ -192,7 +192,9 @@ impl Crdt { } }) .collect(); - assert!(nodes.len() > 0); + if nodes.len() < 1 { + return Err(Error::CrdtToSmall); + } info!("nodes table {}", nodes.len()); info!("blobs table {}", blobs.len()); // enumerate all the blobs, those are the indecies