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
@@ -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,