Skip to content

Commit a20d36d

Browse files
committed
Remove the custom ThreadPoolExecutor from the client
1 parent 48108cb commit a20d36d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/scala/com/codacy/client/bitbucket/client/BitbucketClient.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,7 @@ class BitbucketClient(key: String, secretKey: String, token: String, secretToken
200200

201201
private def withClient[T](block: NingWSClient => T): Try[T] = {
202202
val config = new NingAsyncHttpClientConfigBuilder().build()
203-
val clientConfig = new AsyncHttpClientConfig.Builder(config)
204-
.setExecutorService(new ThreadPoolExecutor(5, 15, 30L, TimeUnit.SECONDS, new SynchronousQueue[Runnable]))
205-
.build()
203+
val clientConfig = new AsyncHttpClientConfig.Builder(config).build()
206204
val client = new NingWSClient(clientConfig)
207205
val result = Try(block(client))
208206
client.close()

0 commit comments

Comments
 (0)