File tree 1 file changed +1
-2
lines changed
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,6 @@ impl RedisCluster {
206
206
207
207
match process. try_wait ( ) {
208
208
Ok ( Some ( status) ) => {
209
-
210
209
let stdout = process. stdout . map_or ( String :: new ( ) , |mut out|{
211
210
let mut str = String :: new ( ) ;
212
211
out. read_to_string ( & mut str) . unwrap ( ) ;
@@ -221,7 +220,7 @@ impl RedisCluster {
221
220
format ! ( "redis server creation failed with status {status:?}.\n stdout: `{stdout}`.\n stderr: `{stderr}`" ) ;
222
221
if cur_attempts == max_attempts {
223
222
let log_file_index = cmd. get_args ( ) . position ( |os_str| os_str == "--logfile" ) . unwrap ( ) + 1 ;
224
- let log_file_path = cmd. get_args ( ) . skip ( log_file_index) . next ( ) . unwrap ( ) ;
223
+ let log_file_path = cmd. get_args ( ) . nth ( log_file_index) . unwrap ( ) ;
225
224
let contents = std:: fs:: read_to_string ( log_file_path) . unwrap ( ) ;
226
225
panic ! ( "{err} - logfile: {contents}" ) ;
227
226
}
You can’t perform that action at this time.
0 commit comments