Skip to content

Commit

Permalink
Update callMethod logic
Browse files Browse the repository at this point in the history
  • Loading branch information
HindujaB committed Nov 22, 2024
1 parent a2c6cf4 commit 09050dd
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,8 @@ private static Object invokeRemoteFunction(Environment env, BObject bSubscriberS
Module module = ModuleUtils.getModule();
Object[] args = new Object[]{message};
ObjectType serviceType = (ObjectType) TypeUtils.getReferredType(TypeUtils.getType(bSubscriberService));
boolean isIsolated = serviceType.isIsolated() && serviceType.isIsolated(remoteFunctionName);
StrandMetadata metadata = new StrandMetadata(isIsolated, null);
try {
Object result = env.getRuntime().callMethod(bSubscriberService, remoteFunctionName, metadata, args);
Object result = env.getRuntime().callMethod(bSubscriberService, remoteFunctionName, null, args);
ModuleUtils.notifySuccess(balFuture, result);
return ModuleUtils.getResult(balFuture);
} catch (BError bError) {
Expand Down

0 comments on commit 09050dd

Please sign in to comment.