@@ -59,7 +59,7 @@ impl Workload {
5959 let query_count = 2 ; //hardcoded
6060 let test_named_vectors = TestNamedVectors :: new ( duplication_factor, vec_dim) ;
6161 let write_ordering = None ; // default
62- Workload {
62+ Self {
6363 collection_name : collection_name. to_string ( ) ,
6464 test_named_vectors,
6565 query_count,
@@ -133,13 +133,12 @@ impl Workload {
133133 // send stop signal to the main thread
134134 self . stopped . store ( true , Ordering :: Relaxed ) ;
135135 break ;
136- } else {
137- log:: warn!(
138- "Workload run failed due to client error - resuming soon\n {error:?}"
139- ) ;
140- // no need to hammer the server while it restarts
141- sleep ( Duration :: from_secs ( 3 ) ) . await ;
142136 }
137+ log:: warn!(
138+ "Workload run failed due to client error - resuming soon\n {error:?}"
139+ ) ;
140+ // no need to hammer the server while it restarts
141+ sleep ( Duration :: from_secs ( 3 ) ) . await ;
143142 }
144143 }
145144 }
@@ -301,7 +300,7 @@ impl Workload {
301300
302301 log:: info!( "Run: delete existing points (all points by filter)" ) ;
303302 delete_points ( client, & self . collection_name ) . await ?;
304- self . reset_max_confirmed_point_id ( )
303+ self . reset_max_confirmed_point_id ( ) ;
305304 }
306305
307306 // Validate existing collection snapshots
@@ -338,7 +337,7 @@ impl Workload {
338337 self . data_consistency_check ( client, restored_count) . await ?;
339338
340339 delete_points ( client, & self . collection_name ) . await ?;
341- self . reset_max_confirmed_point_id ( )
340+ self . reset_max_confirmed_point_id ( ) ;
342341 }
343342 log:: info!( "All snapshots validated and deleted!" ) ;
344343 }
0 commit comments