Skip to content

Commit

Permalink
Remove new strand metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
HindujaB committed Nov 16, 2024
1 parent d3d1005 commit 82f05a3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import io.ballerina.runtime.api.Environment;
import io.ballerina.runtime.api.Module;
import io.ballerina.runtime.api.concurrent.StrandMetadata;
import io.ballerina.runtime.api.creators.ValueCreator;
import io.ballerina.runtime.api.types.IntersectionType;
import io.ballerina.runtime.api.types.MethodType;
Expand Down Expand Up @@ -204,10 +203,8 @@ private static Object invokeRemoteFunction(Environment env, BObject bHubService,
CompletableFuture<Object> balFuture = new CompletableFuture<>();
Module module = ModuleUtils.getModule();
ObjectType serviceType = (ObjectType) TypeUtils.getReferredType(TypeUtils.getType(bHubService));
boolean isIsolated = serviceType.isIsolated() && serviceType.isIsolated(remoteFunctionName);
StrandMetadata metadata = new StrandMetadata(isIsolated, null);
try {
Object result = env.getRuntime().callMethod(bHubService, remoteFunctionName, metadata, args);
Object result = env.getRuntime().callMethod(bHubService, remoteFunctionName, null, args);
ModuleUtils.notifySuccess(balFuture, result);
return ModuleUtils.getResult(balFuture);
} catch (BError bError) {
Expand Down

0 comments on commit 82f05a3

Please sign in to comment.