Modifying user list of sync server

Hi!

I am looking at the documentation and the source of the sync server and as far as I understand, in order to modify the list of users (SYNC_USER1, SYNC_USER2, etc.) I need to restart Anki on the server. Is this observation correct?

If it is, then what happens when one or more clients are syncing, and I restart Anki on the server in the meanwhile? Is the sync protocol robust enough to handle that, or it can potentially end up with corrupted data on the client(s)/server/both? Unfortunately my Rust skills are more than basic, so I can’t really figure this one out by looking at the code myself. :slight_smile:

Many thanks in advance,
Péter

If a user happens to be syncing at that moment, they’ll get an error and need to sync again. It won’t cause corruption.