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