Skip to content

Commit e31f32b

Browse files
committed
fix(kotlin): parameter order
1 parent 080cfab commit e31f32b

File tree

1 file changed

+2
-2
lines changed
  • clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/extensions

1 file changed

+2
-2
lines changed

clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/extensions/SearchClient.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import kotlin.time.Duration.Companion.seconds
2020
/**
2121
* Wait for an API key to be added, updated or deleted based on a given `operation`.
2222
*
23-
* @param operation The `operation` that was done on a `key`.
2423
* @param key The `key` that has been added, deleted or updated.
24+
* @param operation The `operation` that was done on a `key`.
2525
* @param apiKey Necessary to know if an `update` operation has been processed, compare fields of
2626
* the response with it.
2727
* @param maxRetries The maximum number of retries. 50 by default. (optional)
@@ -31,8 +31,8 @@ import kotlin.time.Duration.Companion.seconds
3131
* the transporter requestOptions. (optional)
3232
*/
3333
public suspend fun SearchClient.waitForApiKey(
34-
operation: ApiKeyOperation,
3534
key: String,
35+
operation: ApiKeyOperation,
3636
apiKey: ApiKey? = null,
3737
maxRetries: Int = 50,
3838
timeout: Duration = Duration.INFINITE,

0 commit comments

Comments
 (0)