From 176fde296b143e230ea8889073c69b34a95d41f6 Mon Sep 17 00:00:00 2001 From: Erk- Date: Wed, 24 Oct 2018 15:27:51 +0200 Subject: [PATCH] Fix compilation without cache (#420) --- src/client/dispatch.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/dispatch.rs b/src/client/dispatch.rs index f3585a8a095..3cc22e4e3e1 100644 --- a/src/client/dispatch.rs +++ b/src/client/dispatch.rs @@ -25,6 +25,7 @@ use std::time::Duration; #[cfg(feature = "cache")] use super::CACHE; +#[cfg(feature = "cache")] lazy_static! { pub static ref CACHE_TRY_WRITE_DURATION: Option = CACHE.read().get_try_write_duration();