-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(routing): Contract based routing integration #6761
base: main
Are you sure you want to change the base?
Conversation
…r-router-integration
crates/api_models/src/routing.rs
Outdated
self.config.as_mut().map(|config| config.update(new_config)); | ||
} | ||
if let Some(new_label_info) = new.label_info { | ||
self.label_info = Some(new_label_info) |
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.
is it ok to loose the entire list of LabelInformation
? or should we consider more granular way of updating, like whether to append to existing list or completely override
} | ||
} | ||
} else { | ||
self.label_info = Some(vec![new_label_info.clone()]); |
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.
is it ok to loose old entries in this vector as you are completely overriding it?
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.
This case would only arise when we don't have any existing entries in the vec
Type of Change
Description
Additional Changes
Motivation and Context
How did you test it?
Response -
Metrics Population post payment -
Checklist
cargo +nightly fmt --all
cargo clippy