server: Make registration implicit

This commit is contained in:
2022-01-12 08:15:40 -06:00
parent 1b07efe291
commit 8cd5b93b47
8 changed files with 7 additions and 152 deletions

View File

@@ -20,15 +20,6 @@
package org.isoron.uhabits.core.sync
interface AbstractSyncServer {
/**
* Generates and returns a new sync key, which can be used to store and retrive
* data.
*
* @throws ServiceUnavailable If key cannot be generated at this time, for example,
* due to insufficient server resources, temporary server maintenance or network problems.
*/
suspend fun register(): String
/**
* Replaces data for a given sync key.
*