Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
RDPerera committed Oct 23, 2023
1 parent 4e6007d commit c3eb1e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/listner/create_listner.bal
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ listener asb:Listener asbListener = new (configuration);
maxAutoLockRenewDuration: 300
}
service asb:MessageService on asbListener {
remote function onMessage(asb:Message message, asb:Caller caller) returns asb:Error? {
isolated remote function onMessage(asb:Message message, asb:Caller caller) returns asb:Error? {
log:printInfo("Message received from queue: " + message.toBalString());
_ = check caller.complete(message);
}

remote function onError(asb:ErrorContext context, error 'error) returns asb:Error? {
isolated remote function onError(asb:ErrorContext context, error 'error) returns asb:Error? {
log:printInfo("Error received from queue: " + context.toBalString());
}
};
};

0 comments on commit c3eb1e2

Please sign in to comment.