From a093d5c8093b7282806169fc51e3119fa525a24c Mon Sep 17 00:00:00 2001 From: Greg Fitzgerald Date: Fri, 7 Sep 2018 20:48:02 -0600 Subject: [PATCH] Fix erasure build --- src/window.rs | 2 +- src/window_service.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/window.rs b/src/window.rs index 11fd1dd2b7..bee4e40534 100644 --- a/src/window.rs +++ b/src/window.rs @@ -251,7 +251,7 @@ impl WindowUtil for Window { if erasure::recover( id, recycler, - window, + self, *consumed, (*consumed % WINDOW_SIZE) as usize, ).is_err() diff --git a/src/window_service.rs b/src/window_service.rs index 0cfff352c2..a67c3d7f70 100644 --- a/src/window_service.rs +++ b/src/window_service.rs @@ -2,8 +2,6 @@ //! use counter::Counter; use crdt::{Crdt, NodeInfo}; -#[cfg(feature = "erasure")] -use erasure; use log::Level; use packet::{BlobRecycler, SharedBlob}; use rand::{thread_rng, Rng};