Skip to content

Commit

Permalink
Make transport's tracker methods asynchronous
Browse files Browse the repository at this point in the history
  • Loading branch information
anti-social committed Jun 22, 2023
1 parent 2cf0ccb commit ac2d7b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ sealed class ResponseResult<T> {
interface Tracker {
fun requiresTextContent(request: Request<*, *, *>): Boolean = false

fun onRequest(request: PlainRequest)
suspend fun onRequest(request: PlainRequest)

fun onResponse(responseResult: Result<PlainResponse>, duration: Duration)
suspend fun onResponse(responseResult: Result<PlainResponse>, duration: Duration)
}

abstract class ElasticsearchTransport(
Expand Down

0 comments on commit ac2d7b9

Please sign in to comment.