Skip to content
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

Build and Api Versoining #752

Merged
merged 10 commits into from
Oct 24, 2020
Merged

Build and Api Versoining #752

merged 10 commits into from
Oct 24, 2020

Conversation

StaticallyTypedAnxiety
Copy link
Contributor

Summary of changes
Changes introduced in this pull request:

  • Implements versioning for forest

Reference issue to close (if applicable)

Closes

Other information and links

@StaticallyTypedAnxiety StaticallyTypedAnxiety changed the title Implemented versioning Api Versioning Oct 16, 2020
@StaticallyTypedAnxiety StaticallyTypedAnxiety changed the title Api Versioning Build and Api Versoining Oct 16, 2020
Comment on lines +49 to +50
pub static ref BUILD_TYPE: RwLock<BuildType> = RwLock::new(BuildType::BuildDefault);
pub static ref RUNNING_NODE_TYPE: RwLock<NodeType> = RwLock::new(NodeType::Full);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why rwlock? Always same?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be injecting/populatingthese values depending on what is being run at the current time. These contribute to the API details that would be returned

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only point I was making here was that there is no need to wrap it in a mutex when it is never overwritten. Doesn't really matter but just no need for the overhead right now

types/src/build_version/mod.rs Outdated Show resolved Hide resolved
types/src/build_version/mod.rs Outdated Show resolved Hide resolved
Co-authored-by: Austin Abell <austinabell8@gmail.com>
Comment on lines +49 to +50
pub static ref BUILD_TYPE: RwLock<BuildType> = RwLock::new(BuildType::BuildDefault);
pub static ref RUNNING_NODE_TYPE: RwLock<NodeType> = RwLock::new(NodeType::Full);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only point I was making here was that there is no need to wrap it in a mutex when it is never overwritten. Doesn't really matter but just no need for the overhead right now

@StaticallyTypedAnxiety StaticallyTypedAnxiety merged commit fb2ca2b into main Oct 24, 2020
@StaticallyTypedAnxiety StaticallyTypedAnxiety deleted the api_version branch October 24, 2020 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants