state: remove unused variables
This commit is contained in:
parent
f4db12efcb
commit
006596b9a9
|
|
@ -28,14 +28,14 @@ struct StateService {
|
||||||
/// Holds data relating to finalized chain state.
|
/// Holds data relating to finalized chain state.
|
||||||
sled: SledState,
|
sled: SledState,
|
||||||
/// Holds data relating to non-finalized chain state.
|
/// Holds data relating to non-finalized chain state.
|
||||||
mem: MemoryState,
|
_mem: MemoryState,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl StateService {
|
impl StateService {
|
||||||
pub fn new(config: Config, network: Network) -> Self {
|
pub fn new(config: Config, network: Network) -> Self {
|
||||||
let sled = SledState::new(&config, network);
|
let sled = SledState::new(&config, network);
|
||||||
let mem = MemoryState {};
|
let _mem = MemoryState {};
|
||||||
Self { sled, mem }
|
Self { sled, _mem }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -51,7 +51,7 @@ impl Service<Request> for StateService {
|
||||||
|
|
||||||
fn call(&mut self, req: Request) -> Self::Future {
|
fn call(&mut self, req: Request) -> Self::Future {
|
||||||
match req {
|
match req {
|
||||||
Request::CommitBlock { block } => unimplemented!(),
|
Request::CommitBlock { .. } => unimplemented!(),
|
||||||
Request::CommitFinalizedBlock { block } => {
|
Request::CommitFinalizedBlock { block } => {
|
||||||
let (rsp_tx, rsp_rx) = oneshot::channel();
|
let (rsp_tx, rsp_rx) = oneshot::channel();
|
||||||
|
|
||||||
|
|
@ -84,7 +84,7 @@ impl Service<Request> for StateService {
|
||||||
.map_ok(|locator| Response::BlockLocator(locator))
|
.map_ok(|locator| Response::BlockLocator(locator))
|
||||||
.boxed()
|
.boxed()
|
||||||
}
|
}
|
||||||
Request::Transaction(hash) => unimplemented!(),
|
Request::Transaction(_) => unimplemented!(),
|
||||||
Request::Block(hash_or_height) => {
|
Request::Block(hash_or_height) => {
|
||||||
//todo: handle in memory and sled
|
//todo: handle in memory and sled
|
||||||
self.sled
|
self.sled
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue