Skip to content

Commit e5e0ccf

Browse files
refactor(internal): inline MoreExecutors usage (#365)
1 parent f29a070 commit e5e0ccf

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lithic-java-core/src/main/kotlin/com/lithic/api/core/http/RetryingHttpClient.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.lithic.api.core.http
22

3-
import com.google.common.util.concurrent.MoreExecutors
43
import com.lithic.api.core.RequestOptions
54
import com.lithic.api.errors.LithicIoException
65
import java.io.IOException
@@ -116,8 +115,10 @@ private constructor(
116115
executeWithRetries(request, requestOptions)
117116
}
118117
},
119-
MoreExecutors.directExecutor()
120-
)
118+
) {
119+
// Run in the same thread.
120+
it.run()
121+
}
121122
.thenCompose(Function.identity())
122123
}
123124

0 commit comments

Comments
 (0)