syn2masFunction migrate
Source pub async fn migrate(
synapse: SynapseReader<'_>,
mas: MasWriter,
server_name: String,
clock: &dyn Clock,
rng: &mut impl RngCore,
provider_id_mapping: HashMap<String, Uuid>,
progress: &Progress,
) -> Result<(), Error>
Expand description
Performs a migration from Synapse’s database to MAS’ database.
§Panics
- If there are more than
usize::MAX
users
§Errors
Errors are returned under the following circumstances:
- An underlying database access error, either to MAS or to Synapse.
- Invalid data in the Synapse database.