File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
scylla/tests/ccm_integration/ccm Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,7 @@ impl NodeStartOptions {
174
174
/// Options to stop the node with.
175
175
/// It allows to control the value of `--no-wait` and `--not-gently` ccm options.
176
176
#[ allow( dead_code) ]
177
+ #[ derive( Default ) ]
177
178
pub ( crate ) struct NodeStopOptions {
178
179
/// Dont't wait for the node to properly stop.
179
180
no_wait : bool ,
@@ -295,7 +296,7 @@ impl Node {
295
296
Ok ( ( ) )
296
297
}
297
298
298
- pub ( crate ) async fn stop ( & mut self , opts : NodeStopOptions ) -> Result < ( ) , Error > {
299
+ pub ( crate ) async fn stop ( & mut self , opts : Option < NodeStopOptions > ) -> Result < ( ) , Error > {
299
300
let mut args: Vec < String > = vec ! [
300
301
self . opts. name( ) ,
301
302
"stop" . to_string( ) ,
@@ -306,7 +307,7 @@ impl Node {
306
307
let NodeStopOptions {
307
308
no_wait,
308
309
not_gently,
309
- } = opts;
310
+ } = opts. unwrap_or_default ( ) ;
310
311
if no_wait {
311
312
args. push ( NodeStopOptions :: NO_WAIT . to_string ( ) ) ;
312
313
}
You can’t perform that action at this time.
0 commit comments