Răsfoiți Sursa

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

parazyd 3 ani în urmă
părinte
comite
8fd8526c52
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      src/consensus/validator.rs

+ 2 - 1
src/consensus/validator.rs

@@ -88,8 +88,9 @@ pub struct ValidatorState {
 }
 
 impl ValidatorState {
+    #[allow(clippy::too_many_arguments)]
     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,
         genesis_ts: Timestamp,
         genesis_data: blake3::Hash,