File tree Expand file tree Collapse file tree 6 files changed +15
-2
lines changed Expand file tree Collapse file tree 6 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1+ #![ cfg( unix) ]
12pub mod constants;
23pub mod scenarios;
34pub mod utils;
Original file line number Diff line number Diff line change @@ -1520,7 +1520,7 @@ where
15201520 Request :: PopulatedOffer ( offer) => Ok ( response_clone
15211521 . content_keys
15221522 . iter ( )
1523- . zip ( offer. content_items . into_iter ( ) )
1523+ . zip ( offer. content_items )
15241524 . filter ( |( is_accepted, _item) | * is_accepted)
15251525 . map ( |( _is_accepted, ( _key, val) ) | val)
15261526 . collect ( ) ) ,
Original file line number Diff line number Diff line change @@ -1140,6 +1140,8 @@ pub mod test {
11401140 // The restarted store should have the same radius as the original
11411141 assert_eq ! ( radius, new_storage. radius) ;
11421142
1143+ drop ( storage) ;
1144+ drop ( new_storage) ;
11431145 temp_dir. close ( ) ?;
11441146 Ok ( ( ) )
11451147 }
Original file line number Diff line number Diff line change 11#![ warn( clippy:: unwrap_used) ]
22
3- use ethportal_api:: types:: cli:: TrinConfig ;
3+ use ethportal_api:: types:: cli:: { TrinConfig , Web3TransportType } ;
44use tracing:: error;
55use trin_utils:: log:: init_tracing_logger;
66
@@ -10,6 +10,14 @@ use trin::run_trin;
1010async fn main ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
1111 init_tracing_logger ( ) ;
1212 let trin_config = TrinConfig :: from_cli ( ) ;
13+
14+ // Placing this check here since TrinConfig has tests which this would fail.
15+ // We also don't want to run unneeded code if we are going to panic for this anyways.
16+ #[ cfg( windows) ]
17+ if let Web3TransportType :: IPC = trin_config. web3_transport {
18+ panic ! ( "Windows doesn't support Unix Domain Sockets IPC, use --web3-transport http" ) ;
19+ }
20+
1321 let rpc_handle = run_trin ( trin_config) . await ?;
1422
1523 tokio:: signal:: ctrl_c ( )
Original file line number Diff line number Diff line change 1+ #![ cfg( unix) ]
12/// Test that a 3rd-party web3 client can understand our JSON-RPC API
23use std:: net:: { IpAddr , Ipv4Addr } ;
34
Original file line number Diff line number Diff line change 1+ #![ cfg( unix) ]
12use rpc:: RpcServerHandle ;
23use std:: env;
34use std:: net:: { IpAddr , Ipv4Addr } ;
You can’t perform that action at this time.
0 commit comments