Improve API, to avoid ignoring errors

This commit is contained in:
Benoit Marty
2024-05-06 23:06:25 +02:00
committed by Benoit Marty
parent d88ef8769e
commit a65c290dd3
18 changed files with 143 additions and 107 deletions
@@ -32,7 +32,12 @@ class FakePushService(
return emptyList()
}
override suspend fun registerWith(matrixClient: MatrixClient, pushProvider: PushProvider, distributor: Distributor) {
override suspend fun registerWith(
matrixClient: MatrixClient,
pushProvider: PushProvider,
distributor: Distributor,
): Result<Unit> {
return Result.success(Unit)
}
override suspend fun testPush(): Boolean = simulateLongTask {