File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
lightning-rapid-gossip-sync/src Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,6 @@ use lightning::io;
74
74
use lightning:: ln:: msgs:: { DecodeError , LightningError } ;
75
75
use lightning:: routing:: gossip:: NetworkGraph ;
76
76
use lightning:: util:: logger:: Logger ;
77
- #[ cfg( feature = "std" ) ]
78
- use std:: fs:: File ;
79
77
80
78
/// Core functionality of this crate
81
79
mod processing;
@@ -145,11 +143,11 @@ where
145
143
///
146
144
/// `sync_path`: Path to the file where the gossip update data is located
147
145
///
148
- #[ cfg( feature = "std" ) ]
146
+ #[ cfg( all ( feature = "std" , not ( feature = "no-std" ) ) ) ]
149
147
pub fn sync_network_graph_with_file_path (
150
148
& self , sync_path : & str ,
151
149
) -> Result < u32 , GraphSyncError > {
152
- let file = File :: open ( sync_path) . map_err ( |e| {
150
+ let file = std :: fs :: File :: open ( sync_path) . map_err ( |e| {
153
151
let bitcoin_error: bitcoin:: io:: Error = e. into ( ) ;
154
152
bitcoin_error
155
153
} ) ?;
@@ -193,7 +191,7 @@ where
193
191
}
194
192
}
195
193
196
- #[ cfg( feature = "std" ) ]
194
+ #[ cfg( all ( feature = "std" , not ( feature = "no-std" ) ) ) ]
197
195
#[ cfg( test) ]
198
196
mod tests {
199
197
use std:: fs;
You can’t perform that action at this time.
0 commit comments