Skip to content

Commit

Permalink
Update return type for createSession API
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Aug 7, 2023
1 parent 8671448 commit 994432b
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 994432b

Please sign in to comment.