@@ -25,9 +25,6 @@ pub struct PreparedStatement {
2525 pub ( crate ) config : StatementConfig ,
2626 pub prepare_tracing_ids : Vec < Uuid > ,
2727
28- // TODO: Move this after #701 is fixed
29- retry_policy : Option < Arc < dyn RetryPolicy > > ,
30-
3128 id : Bytes ,
3229 shared : Arc < PreparedStatementSharedData > ,
3330 page_size : Option < i32 > ,
@@ -45,7 +42,6 @@ impl Clone for PreparedStatement {
4542 fn clone ( & self ) -> Self {
4643 Self {
4744 config : self . config . clone ( ) ,
48- retry_policy : self . retry_policy . clone ( ) ,
4945 prepare_tracing_ids : Vec :: new ( ) ,
5046 id : self . id . clone ( ) ,
5147 shared : self . shared . clone ( ) ,
@@ -62,7 +58,6 @@ impl PreparedStatement {
6258 is_lwt : bool ,
6359 metadata : PreparedMetadata ,
6460 statement : String ,
65- retry_policy : Option < Arc < dyn RetryPolicy > > ,
6661 page_size : Option < i32 > ,
6762 config : StatementConfig ,
6863 ) -> Self {
@@ -72,7 +67,6 @@ impl PreparedStatement {
7267 metadata,
7368 statement,
7469 } ) ,
75- retry_policy,
7670 prepare_tracing_ids : Vec :: new ( ) ,
7771 page_size,
7872 config,
@@ -303,13 +297,13 @@ impl PreparedStatement {
303297 /// Set the retry policy for this statement, overriding the one from execution profile if not None.
304298 #[ inline]
305299 pub fn set_retry_policy ( & mut self , retry_policy : Option < Arc < dyn RetryPolicy > > ) {
306- self . retry_policy = retry_policy;
300+ self . config . retry_policy = retry_policy;
307301 }
308302
309303 /// Get the retry policy set for the statement.
310304 #[ inline]
311305 pub fn get_retry_policy ( & self ) -> Option < & Arc < dyn RetryPolicy > > {
312- self . retry_policy . as_ref ( )
306+ self . config . retry_policy . as_ref ( )
313307 }
314308
315309 /// Sets the listener capable of listening what happens during query execution.
0 commit comments