From 47ec83709989885b378b16d4c4d62a497abc9359 Mon Sep 17 00:00:00 2001 From: warunalakshitha Date: Tue, 19 Nov 2024 19:35:35 +0530 Subject: [PATCH] Improve callMethod in client action --- .../stdlib/http/api/client/actions/HttpClientAction.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/native/src/main/java/io/ballerina/stdlib/http/api/client/actions/HttpClientAction.java b/native/src/main/java/io/ballerina/stdlib/http/api/client/actions/HttpClientAction.java index 73c880b24..aa7186480 100644 --- a/native/src/main/java/io/ballerina/stdlib/http/api/client/actions/HttpClientAction.java +++ b/native/src/main/java/io/ballerina/stdlib/http/api/client/actions/HttpClientAction.java @@ -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; @@ -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);