@@ -17,7 +17,6 @@ use crate::persisted_fork_choice::{
1717} ;
1818use crate :: types:: ChainSpec ;
1919use slog:: { warn, Logger } ;
20- use std:: path:: Path ;
2120use std:: sync:: Arc ;
2221use store:: hot_cold_store:: { HotColdDB , HotColdDBError } ;
2322use store:: metadata:: { SchemaVersion , CURRENT_SCHEMA_VERSION } ;
@@ -27,7 +26,6 @@ use store::{Error as StoreError, StoreItem};
2726pub fn migrate_schema < T : BeaconChainTypes > (
2827 db : Arc < HotColdDB < T :: EthSpec , T :: HotStore , T :: ColdStore > > ,
2928 deposit_contract_deploy_block : u64 ,
30- datadir : & Path ,
3129 from : SchemaVersion ,
3230 to : SchemaVersion ,
3331 log : Logger ,
@@ -42,43 +40,25 @@ pub fn migrate_schema<T: BeaconChainTypes>(
4240 migrate_schema :: < T > (
4341 db. clone ( ) ,
4442 deposit_contract_deploy_block,
45- datadir,
4643 from,
4744 next,
4845 log. clone ( ) ,
4946 spec,
5047 ) ?;
51- migrate_schema :: < T > (
52- db,
53- deposit_contract_deploy_block,
54- datadir,
55- next,
56- to,
57- log,
58- spec,
59- )
48+ migrate_schema :: < T > ( db, deposit_contract_deploy_block, next, to, log, spec)
6049 }
6150 // Downgrade across multiple versions by recursively migrating one step at a time.
6251 ( _, _) if to. as_u64 ( ) + 1 < from. as_u64 ( ) => {
6352 let next = SchemaVersion ( from. as_u64 ( ) - 1 ) ;
6453 migrate_schema :: < T > (
6554 db. clone ( ) ,
6655 deposit_contract_deploy_block,
67- datadir,
6856 from,
6957 next,
7058 log. clone ( ) ,
7159 spec,
7260 ) ?;
73- migrate_schema :: < T > (
74- db,
75- deposit_contract_deploy_block,
76- datadir,
77- next,
78- to,
79- log,
80- spec,
81- )
61+ migrate_schema :: < T > ( db, deposit_contract_deploy_block, next, to, log, spec)
8262 }
8363
8464 //
0 commit comments