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

chore: introduce GcsSnapshotStorage #4004

Merged
merged 1 commit into from
Oct 28, 2024
Merged

chore: introduce GcsSnapshotStorage #4004

merged 1 commit into from
Oct 28, 2024

Conversation

romange
Copy link
Collaborator

@romange romange commented Oct 28, 2024

It's not been used yet so no functional changes.

It's not been used yet so no functional changes.

Signed-off-by: Roman Gershman <[email protected]>
@romange romange requested a review from BorysTheDev October 28, 2024 09:17
Comment on lines +44 to +48
if (absl::StartsWith(clean, kS3Prefix)) {
clean = absl::StripPrefix(clean, kS3Prefix);
} else {
clean = absl::StripPrefix(clean, kGCSPrefix);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer to write it in a more generic way
const auto& prefix = absl::StartsWith(clean, kS3Prefix) ? kS3Prefix : kGCSPrefix;
clean = absl::StripPrefix(clean, prefix).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👍🏼 will do that in the next PR.

@romange romange enabled auto-merge (squash) October 28, 2024 09:43
@romange romange merged commit b9c1aae into main Oct 28, 2024
12 checks passed
@romange romange deleted the Pr3 branch October 28, 2024 09:57
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.

2 participants