Skip to content

Commit

Permalink
raftstore: Fix non-abstract use of test engines
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Anderson <andersrb@gmail.com>
  • Loading branch information
brson committed Sep 21, 2020
1 parent 2731571 commit 6dae7a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/raftstore/src/store/snap.rs
Expand Up @@ -1521,7 +1521,7 @@ pub mod tests {
use std::sync::{Arc, RwLock};

use engine_test::ctor::{EngineConstructorExt, DBOptions, CFOptions, ColumnFamilyOptions};
use engine_test::kv::{KvTestEngine, KvTestSnapshot};
use engine_test::kv::{KvTestEngine};
use engine_test::raft::{RaftTestEngine};
use engine_traits::Engines;
use engine_traits::{SyncMutable};
Expand Down Expand Up @@ -2403,7 +2403,7 @@ pub mod tests {
let snap_mgr = SnapManagerBuilder::default()
.max_total_size(max_total_size)
.build::<_>(snapfiles_path.path().to_str().unwrap());
let snapshot = KvTestSnapshot::new(engine.kv.as_inner().clone());
let snapshot = engine.kv.snapshot();

// Add an oldest snapshot for receiving.
let recv_key = SnapKey::new(100, 100, 100);
Expand Down

0 comments on commit 6dae7a9

Please sign in to comment.