Skip to content

Commit

Permalink
Improve callMethod in client action
Browse files Browse the repository at this point in the history
  • Loading branch information
warunalakshitha committed Nov 19, 2024
1 parent 9fb5454 commit 47ec837
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package io.ballerina.stdlib.http.api.client.actions;

import io.ballerina.runtime.api.Environment;
import io.ballerina.runtime.api.concurrent.StrandMetadata;
import io.ballerina.runtime.api.types.RecordType;
import io.ballerina.runtime.api.types.TypeTags;
import io.ballerina.runtime.api.utils.StringUtils;
Expand Down Expand Up @@ -208,7 +207,7 @@ private static Object invokeClientMethod(Environment env, BObject client, BStrin
private static Object invokeClientMethod(Environment env, BObject client, String methodName, Object[] paramFeed) {
return env.yieldAndRun(() -> {
try {
return env.getRuntime().callMethod(client, methodName, new StrandMetadata(true, null), paramFeed);
return env.getRuntime().callMethod(client, methodName, null, paramFeed);
} catch (BError bError) {
return HttpUtil.createHttpError("client method invocation failed: " + bError.getErrorMessage(),
HttpErrorType.CLIENT_ERROR, bError);
Expand Down

0 comments on commit 47ec837

Please sign in to comment.