File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ pub struct CommandScenariosGenerate {
40
40
pub name : Option < String > ,
41
41
#[ arg( long, short) ]
42
42
pub use_debugger : bool ,
43
+ #[ arg( long, short) ]
44
+ pub webrtc : bool ,
43
45
}
44
46
45
47
/// Run scenario located at `res/scenarios`.
@@ -83,6 +85,9 @@ impl Command {
83
85
if cmd. use_debugger {
84
86
config. use_debugger ( ) ;
85
87
}
88
+ if cmd. webrtc {
89
+ config. set_all_rust_to_rust_use_webrtc ( ) ;
90
+ }
86
91
Ok ( scenario. run_only_from_scratch ( config) )
87
92
} ;
88
93
let fut = async move {
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ impl Scenarios {
131
131
Self :: SimulationSmall ( _) => true ,
132
132
Self :: SimulationSmallForeverRealTime ( _) => true ,
133
133
Self :: MultiNodePubsubPropagateBlock ( _) => true , // in progress
134
- Self :: P2pSignaling ( _) => cfg ! ( feature = "p2p-webrtc" ) ,
134
+ Self :: P2pSignaling ( _) => ! cfg ! ( feature = "p2p-webrtc" ) ,
135
135
_ => false ,
136
136
}
137
137
}
You can’t perform that action at this time.
0 commit comments