Skip to content

Commit

Permalink
Address suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
HindujaB committed Nov 21, 2024
1 parent 34590d9 commit 9ded40e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org.gradle.caching=true
group=io.ballerina
version=0.9.0-SNAPSHOT
version=0.10.0-SNAPSHOT

#dependency
ballerinaLangVersion=2201.11.0-20241117-133400-a3054b77
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package io.ballerinax.event;

import io.ballerina.runtime.api.Environment;
import io.ballerina.runtime.api.concurrent.StrandMetadata;
import io.ballerina.runtime.api.creators.ErrorCreator;
import io.ballerina.runtime.api.values.BError;
import io.ballerina.runtime.api.values.BMap;
Expand All @@ -36,8 +35,7 @@ public static Object invokeRemoteFunction(Environment env, BObject adaptor, BMap
Object[] args = new Object[]{message, true};
return env.yieldAndRun(() -> {
try {
return env.getRuntime().callMethod(serviceObj, eventFunction.getValue(),
new StrandMetadata(true, null), args);
return env.getRuntime().callMethod(serviceObj, eventFunction.getValue(), null, args);
} catch (BError error) {
BString errorMessage = fromString("service method invocation failed: " + error.getErrorMessage());
BError invocationError = ErrorCreator.createError(errorMessage, error);
Expand Down

0 comments on commit 9ded40e

Please sign in to comment.