Skip to content

Commit

Permalink
Make Java to Bal calls isolated
Browse files Browse the repository at this point in the history
  • Loading branch information
warunalakshitha committed Jan 9, 2025
1 parent a820015 commit 9e53362
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private void returnErrorResponse(BError error) {
public void invokeBalMethod(Object[] paramFeed, String methodName) {
Thread.startVirtualThread(() -> {
try {
StrandMetadata metaData = new StrandMetadata(false, null);
StrandMetadata metaData = new StrandMetadata(true, null);
runtime.callMethod(caller, methodName, metaData, paramFeed);
stopObserverContext();
} catch (BError error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private void returnResponse(Object result) {
public void invokeBalMethod(Object[] paramFeed, String methodName) {
Thread.startVirtualThread(() -> {
try {
StrandMetadata metaData = new StrandMetadata(false, null);
StrandMetadata metaData = new StrandMetadata(true, null);
runtime.callMethod(caller, methodName, metaData, paramFeed);
} catch (BError error) {
cleanupRequestMessage();
Expand Down

0 comments on commit 9e53362

Please sign in to comment.