From 857fb8f004ae8019f3168e27c88e1114d2321971 Mon Sep 17 00:00:00 2001 From: DarkSky Date: Thu, 12 Sep 2024 18:24:32 +0800 Subject: [PATCH] chore: fix lint --- y-octo-node/native/src/doc.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/y-octo-node/native/src/doc.rs b/y-octo-node/native/src/doc.rs index 8ee1748..75f8c2e 100644 --- a/y-octo-node/native/src/doc.rs +++ b/y-octo-node/native/src/doc.rs @@ -120,7 +120,8 @@ impl YDoc { self.doc.apply_update_from_binary_v1(update)?; // if update received from remote and current client state has been changed - // that means another client using same client id, we need to change the client id to avoid conflict + // that means another client using same client id, we need to change the client + // id to avoid conflict if self.doc.get_state_vector().get(&client) != before_current_state { self.doc.renew_client(); }