-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make external functions isolated #91
Make external functions isolated #91
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hope we've verified that these are indeed safe - i.e., specifically for isolated functions, they meet the requirements for isolated functions implemented in Ballerina
55dd3d0
to
b0ec6d6
Compare
@MaryamZi I have re-added isolated qualifier for public functions. I bumped the minor version as well since this will be a breaking change. |
3b33097
to
b0ec6d6
Compare
ballerina/natives.bal
Outdated
} else { | ||
self.metricTags = DEFAULT_TAGS; | ||
lock { | ||
self.metricTags = defaultTags.cloneReadOnly(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting is off?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked and seems like the formatting is correct. Anyway these locks have been removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a minor comment. Other than that, code changes LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes LGTM.
Purpose
All the external functions should be isolated functions.
Fixes https://github.com/ballerina-platform/module-ballerinax-prometheus/issues/146
Examples
Checklist