Prune some duplicated dependencies in the dep graph (#11433)

Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
Qinxuan Chen
2022-05-18 15:23:15 +08:00
committed by GitHub
parent 74428fa8ac
commit fe4acb7924
11 changed files with 36 additions and 146 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ sp-runtime = { version = "6.0.0", path = "../../../primitives/runtime" }
sp-state-machine = { version = "0.12.0", path = "../../../primitives/state-machine" }
serde = "1.0.136"
serde_json = "1.0.79"
derive_more = "0.99.16"
derive_more = { version = "0.99.17", default-features = false, features = ["display"] }
kvdb = "0.11.0"
kvdb-rocksdb = "0.15.1"
sp-trie = { version = "6.0.0", path = "../../../primitives/trie" }
+1 -1
View File
@@ -20,7 +20,7 @@ use kvdb::{DBTransaction, KeyValueDB};
use kvdb_rocksdb::{Database, DatabaseConfig};
use std::{io, path::PathBuf, sync::Arc};
#[derive(Debug, Clone, Copy, derive_more::Display)]
#[derive(Clone, Copy, Debug)]
pub enum DatabaseType {
RocksDb,
ParityDb,
+2 -2
View File
@@ -155,7 +155,7 @@ impl core::BenchmarkDescription for TrieReadBenchmarkDescription {
fn name(&self) -> Cow<'static, str> {
format!(
"Trie read benchmark({} database ({} keys), db_type: {})",
"Trie read benchmark({:?} database ({} keys), db_type: {:?})",
self.database_size,
pretty_print(self.database_size.keys()),
self.database_type,
@@ -260,7 +260,7 @@ impl core::BenchmarkDescription for TrieWriteBenchmarkDescription {
fn name(&self) -> Cow<'static, str> {
format!(
"Trie write benchmark({} database ({} keys), db_type = {})",
"Trie write benchmark({:?} database ({} keys), db_type = {:?})",
self.database_size,
pretty_print(self.database_size.keys()),
self.database_type,