Skip to content

Commit

Permalink
refactor(internal): inline MoreExecutors usage (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Oct 30, 2024
1 parent f285344 commit 345de16
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.moderntreasury.api.core.http

import com.google.common.util.concurrent.MoreExecutors
import com.moderntreasury.api.core.RequestOptions
import com.moderntreasury.api.errors.ModernTreasuryIoException
import java.io.IOException
Expand Down Expand Up @@ -116,8 +115,10 @@ private constructor(
executeWithRetries(request, requestOptions)
}
},
MoreExecutors.directExecutor()
)
) {
// Run in the same thread.
it.run()
}
.thenCompose(Function.identity())
}

Expand Down

0 comments on commit 345de16

Please sign in to comment.