We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ce06b7 commit 7b1530aCopy full SHA for 7b1530a
libsql/src/replication/remote_client.rs
@@ -89,7 +89,7 @@ impl RemoteClient {
89
) -> Result<bool, Error> {
90
let hello = hello?.into_inner();
91
verify_session_token(&hello.session_token).map_err(Error::Client)?;
92
- let new_session = self.session_token != Some(hello.session_token.clone());
+ let new_session = self.session_token.as_ref() != Some(&hello.session_token);
93
self.session_token = Some(hello.session_token.clone());
94
let current_replication_index = hello.current_replication_index;
95
if let Err(e) = self.meta.init_from_hello(hello) {
0 commit comments