@@ -9,9 +9,10 @@ use mithril_common::{
9
9
cache:: ImmutableFileDigestCacheProvider ,
10
10
cache:: JsonImmutableFileDigestCacheProviderBuilder , CardanoImmutableDigester ,
11
11
} ,
12
+ StdError ,
12
13
} ;
13
14
use slog_scope:: { debug, warn} ;
14
- use std:: { error :: Error , path:: Path , sync:: Arc } ;
15
+ use std:: { path:: Path , sync:: Arc } ;
15
16
16
17
use crate :: { AggregatorHTTPClient , AggregatorHandler , Config , Runtime } ;
17
18
@@ -41,7 +42,7 @@ impl RestoreCommand {
41
42
pub async fn execute (
42
43
& self ,
43
44
config_builder : ConfigBuilder < DefaultState > ,
44
- ) -> Result < ( ) , Box < dyn Error > > {
45
+ ) -> Result < ( ) , StdError > {
45
46
debug ! ( "Restore snapshot" ) ;
46
47
let config: Config = config_builder
47
48
. build ( )
@@ -102,7 +103,7 @@ async fn build_digester_cache_provider(
102
103
disable_digests_cache : bool ,
103
104
reset_digests_cache : bool ,
104
105
config : & Config ,
105
- ) -> Result < Option < Arc < dyn ImmutableFileDigestCacheProvider > > , Box < dyn Error > > {
106
+ ) -> Result < Option < Arc < dyn ImmutableFileDigestCacheProvider > > , StdError > {
106
107
if disable_digests_cache {
107
108
return Ok ( None ) ;
108
109
}
0 commit comments