Skip to content

Commit

Permalink
Run kotlinfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Oct 7, 2024
1 parent 85fecf1 commit b70c42c
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,14 +510,15 @@ class ManagementService(

suspend fun setDaitaEnabled(enabled: Boolean): Either<SetDaitaSettingsError, Unit> =
Either.catch {
val daitaSettings =
ManagementInterface.DaitaSettings.newBuilder().setEnabled(enabled)
// TODO: Before Multihop is supported on Android, calling `setDirectOnly` with false
// will cause undefined behaviour.
.setDirectOnly(true)
.build()
grpc.setDaitaSettings(daitaSettings)
}
val daitaSettings =
ManagementInterface.DaitaSettings.newBuilder()
.setEnabled(enabled)
// TODO: Before Multihop is supported on Android, calling `setDirectOnly`
// with false will cause undefined behaviour.
.setDirectOnly(true)
.build()
grpc.setDaitaSettings(daitaSettings)
}
.mapLeft(SetDaitaSettingsError::Unknown)
.mapEmpty()

Expand Down

0 comments on commit b70c42c

Please sign in to comment.