-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates that are sent for temporary branches are repeatedly sent #491
Comments
Ok, so the updates are kept for a valid reason, which is that temporary branches are deleted by the server once all clients disconnect from it. This means that if a client loses connection, then the server may (or may not) delete the updates, while the client keeps them. Upon reconnect, the client needs to re-upload the updates that it has in order to ensure that everything is synced. This means that we can't simply erase sent updates for the temporary branches, but we could try implementing a smarter version of document syncing. The server could include some state vector information in the initial update after the branch is watched. This would enable the client to build an update that is optimized for updating the server to the latest version that the client has. It would additionally allow the client to skip storing updates and instead rely on the original documents themselves. |
Is there a way to specify things that I really don't care about being held onto? The use-case I'm working with now is the communication of the AR user in 3d space over to other listening clients via a frustum. If that data is lost when the client is disconnected, that is totally fine, as it will push new position information on reconnect. |
@kc9zyz You could try using In the future I expect temp branches ( |
@KallynGowdy that is working perfectly for me! Thanks! I am seeing plenty of these messages now when I try and update a mask or a tag on a |
@kc9zyz That can happen if you have a bot that was created in a space that isn't supported. For example, the |
🤦 That fixed it. Thanks again for your help! Everything is running much smoother now. |
Deprioritizing since this is intentional behavior and improvements would be to make it more efficient. |
In
InstRecordsClient
, updates that are added to temporary branches are added to_sentUpdates
, but are never actually acknowledged via the handler forrepo/updates_received
events.The text was updated successfully, but these errors were encountered: