Skip to content

Commit d14eedc

Browse files
committed
Revert "test retry in case of not retryable"
This reverts commit 83921df.
1 parent b22f551 commit d14eedc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/io/digdag/plugin/slack/SlackOperatorFactory.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@
1313
import okhttp3.Call;
1414
import okhttp3.FormBody;
1515
import okhttp3.Interceptor;
16-
import okhttp3.MediaType;
1716
import okhttp3.OkHttpClient;
1817
import okhttp3.Request;
1918
import okhttp3.RequestBody;
2019
import okhttp3.Response;
21-
import okhttp3.ResponseBody;
2220

2321
import java.io.IOException;
2422
import java.util.Arrays;
@@ -122,8 +120,7 @@ static class RetryInterceptor implements Interceptor
122120
public Response intercept(Chain chain) throws IOException
123121
{
124122
Request request = chain.request();
125-
// Response response = chain.proceed(request);
126-
Response response = new Response.Builder().code(404).message("not found").body(ResponseBody.create(MediaType.parse("application/json; charset=utf-8"), "{}")).protocol(okhttp3.Protocol.HTTP_1_1).request(request).build();
123+
Response response = chain.proceed(request);
127124
int retryCount = 0;
128125
while (!response.isSuccessful() && retryCount < MAX_RETRY_COUNT && Arrays.asList(retryHttpStatus).contains(response.code())) {
129126
retryCount++;

0 commit comments

Comments
 (0)