Просмотр исходного кода

consensus/validator: Allow too many arguments for ValidatorState::new

parazyd 3 лет назад
Родитель
Сommit
8fd8526c52
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/consensus/validator.rs

+ 2 - 1
src/consensus/validator.rs

@@ -88,8 +88,9 @@ pub struct ValidatorState {
 }
 }
 
 
 impl ValidatorState {
 impl ValidatorState {
+    #[allow(clippy::too_many_arguments)]
     pub async fn new(
     pub async fn new(
-        db: &sled::Db, // <-- TODO: Avoid this with some wrapping, sled should only be in blockchain
+        db: &sled::Db,
         bootstrap_ts: Timestamp,
         bootstrap_ts: Timestamp,
         genesis_ts: Timestamp,
         genesis_ts: Timestamp,
         genesis_data: blake3::Hash,
         genesis_data: blake3::Hash,