Skip to content

Commit

Permalink
Merge pull request #89 from ayeshLK/local_development
Browse files Browse the repository at this point in the history
Update return type for `createSession` API
  • Loading branch information
ayeshLK authored Aug 7, 2023
2 parents 0750c3d + 994432b commit 865fd31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ballerina/connection.bal
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public isolated client class Connection {
#
# + ackMode - Configuration indicating how messages received by the session will be acknowledged
# + return - Returns the Session or an error if it fails.
isolated remote function createSession(AcknowledgementMode ackMode = AUTO_ACKNOWLEDGE) returns Session|error {
isolated remote function createSession(AcknowledgementMode ackMode = AUTO_ACKNOWLEDGE) returns Session|Error {
return new Session(self, ackMode);
}

Expand Down
2 changes: 1 addition & 1 deletion ballerina/session.bal
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import ballerina/jballerina.java;
# Represents the JMS session.
public isolated client class Session {

isolated function init(Connection connection, AcknowledgementMode ackMode) returns error? {
isolated function init(Connection connection, AcknowledgementMode ackMode) returns Error? {
return self.externInit(connection, ackMode);
}

Expand Down

0 comments on commit 865fd31

Please sign in to comment.