Fix for building with --no-default-features (#6110)

This commit is contained in:
Arkadiy Paronyan 2017-07-21 12:14:47 +02:00 committed by GitHub
parent 797e7d98d3
commit 99f4bc76d7

View File

@ -188,7 +188,10 @@ mod server {
use parity_rpc::{hyper, RequestMiddleware, RequestMiddlewareAction};
use rpc_apis;
pub type SyncStatus = Fn() -> bool;
pub trait SyncStatus {
fn is_major_importing(&self) -> bool;
fn peers(&self) -> (usize, usize);
}
pub struct Middleware;
impl RequestMiddleware for Middleware {