Skip to content

Commit 48fe492

Browse files
committed
replicator: Add set_primary_handshake_retries
Signed-off-by: Piotr Jastrzebski <piotr@chiselstrike.com>
1 parent 4d31451 commit 48fe492

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

libsql-replication/src/replicator.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ where
195195
self.state = ReplicatorState::NeedHandshake;
196196
}
197197

198+
/// configure number of handshake retries.
199+
pub fn set_primary_handshake_retries(&mut self, retries: usize) {
200+
self.max_handshake_retries = retries;
201+
}
202+
198203
pub fn client_mut(&mut self) -> &mut C {
199204
&mut self.client
200205
}

0 commit comments

Comments
 (0)