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

Log unrecongnized resource quota parts instead of returning an error #1291

Merged
merged 1 commit into from
Jun 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions sdk/data_cosmos/src/resource_quota.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ pub(crate) fn resource_quotas_from_str(
v.push(ResourceQuota::InteropUsers(parseu64(stripped)?));
} else if let Some(stripped) = token.strip_prefix(AUTH_POLICY_ELEMENTS) {
v.push(ResourceQuota::AuthPolicyElements(parseu64(stripped)?));
} else {
return Err(Error::with_message(ErrorKind::DataConversion, || {
heaths marked this conversation as resolved.
Show resolved Hide resolved
format!(
"resource quota has an unrecognized part - part: \"{token}\" full string: \"{full_string}\""
)
}));
}

trace!("v == {:#?}", v);
Expand Down