Skip to content

Conversation

@MrMage
Copy link
Collaborator

@MrMage MrMage commented Feb 22, 2019

This makes reviews easier and avoids expensive memory allocations and Base64 conversions at runtime.

The signature of roots_pem changes from String-returning function to String constant; however, that method has only been made public a few days ago, so no users should be affected.

@MrMage MrMage requested a review from rebello95 February 22, 2019 09:24
@MrMage
Copy link
Collaborator Author

MrMage commented Feb 22, 2019

My hunch is that CI is starting to get flaky again (no idea about the reasons, that should probably be investigated soon); closing and re-opening to re-trigger CI.

@MrMage MrMage closed this Feb 22, 2019
@MrMage MrMage reopened this Feb 22, 2019
Makes reviews easier and avoids expensive memory allocations and Base64 conversions at runtime.

The signature of `roots_pem` changes from `String`-returning function to `String` constant; however, that method has only been made public a few days ago, so no users should be affected.
Copy link
Collaborator

@rebello95 rebello95 left a comment

Choose a reason for hiding this comment

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

Approved with comment

s += "\n"

s += "public func roots_pem() -> String {\n"
s += "public let roots_pem: String = \"\"\"\n"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we make this a constant using the k prefix (i.e., kRootsPem)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Great idea! I've renamed the constant to kRootCertificates now; what do you think of that name?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yea sounds great!

@rebello95 rebello95 merged commit ac3e175 into master Feb 25, 2019
@MrMage MrMage deleted the roots-pem branch April 4, 2019 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants