Fix erasure build

This commit is contained in:
Greg Fitzgerald
2018-09-07 20:48:02 -06:00
parent fc64e1853c
commit a093d5c809
2 changed files with 1 additions and 3 deletions

View File

@ -251,7 +251,7 @@ impl WindowUtil for Window {
if erasure::recover( if erasure::recover(
id, id,
recycler, recycler,
window, self,
*consumed, *consumed,
(*consumed % WINDOW_SIZE) as usize, (*consumed % WINDOW_SIZE) as usize,
).is_err() ).is_err()

View File

@ -2,8 +2,6 @@
//! //!
use counter::Counter; use counter::Counter;
use crdt::{Crdt, NodeInfo}; use crdt::{Crdt, NodeInfo};
#[cfg(feature = "erasure")]
use erasure;
use log::Level; use log::Level;
use packet::{BlobRecycler, SharedBlob}; use packet::{BlobRecycler, SharedBlob};
use rand::{thread_rng, Rng}; use rand::{thread_rng, Rng};