Skip to content

Commit f69598e

Browse files
committed
chore: fmt
1 parent 28f8084 commit f69598e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

node/src/storage_mngr.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ use crate::{
1919
};
2020
use witnet_config::{config, config::Config};
2121
use witnet_data_structures::chain::ChainState;
22-
use witnet_storage::{backends, storage, storage::Storage};
22+
use witnet_storage::{
23+
backends,
24+
storage::{self, Storage, WriteBatch},
25+
};
2326

2427
pub use node_migrations::*;
25-
use witnet_storage::storage::WriteBatch;
2628

2729
mod node_migrations;
2830

storage/src/backends/hashmap.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
//! # HashMap storage backend
22
//!
33
//! Storage backend that keeps data in a heap-allocated HashMap.
4-
use std::collections::HashMap;
4+
use std::{
5+
collections::HashMap,
6+
sync::{RwLock, RwLockReadGuard},
7+
};
58

69
use crate::storage::{Result, Storage, StorageIterator, WriteBatch, WriteBatchItem};
7-
use std::sync::{RwLock, RwLockReadGuard};
810

911
/// HashMap backend
1012
pub type Backend = RwLock<HashMap<Vec<u8>, Vec<u8>>>;

0 commit comments

Comments
 (0)