Fix for building with --no-default-features (#6110)
This commit is contained in:
parent
797e7d98d3
commit
99f4bc76d7
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user