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

feat: decode cached data for engine #6

Merged
merged 55 commits into from
Jun 27, 2024
Merged

feat: decode cached data for engine #6

merged 55 commits into from
Jun 27, 2024

Conversation

AmanRaj1608
Copy link
Collaborator

Updated engine to estimate the bucket and then get the cached value.

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • If it is a core feature, I have added thorough tests.
  • Do we need to implement analytics?
  • Will this be part of a product update? If yes, please write one phrase about this update.

crates/routing-engine/src/engine.rs Outdated Show resolved Hide resolved
crates/routing-engine/src/engine.rs Outdated Show resolved Hide resolved
crates/routing-engine/src/engine.rs Outdated Show resolved Hide resolved
crates/routing-engine/src/engine.rs Outdated Show resolved Hide resolved
crates/routing-engine/src/engine.rs Outdated Show resolved Hide resolved
}

impl RoutingEngine {
pub fn new(aas_client: AccountAggregationService) -> Self {
pub fn new(aas_client: AccountAggregationService, buckets: Vec<BucketConfig>) -> Self {
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be better to accept &'config Vec<BucketConfig> to prevent cloning later in get_cached_data

crates/routing-engine/src/engine.rs Show resolved Hide resolved
crates/routing-engine/src/engine.rs Outdated Show resolved Hide resolved
crates/routing-engine/src/engine.rs Outdated Show resolved Hide resolved
crates/routing-engine/src/engine.rs Outdated Show resolved Hide resolved
@AmanRaj1608
Copy link
Collaborator Author

Unable to close the solver server, tried everything. Thinking to remove the graceful shutdown for now @ankurdubey521

@ankurdubey521
Copy link
Collaborator

Unable to close the solver server, tried everything. Thinking to remove the graceful shutdown for now @ankurdubey521

I will take a look, if I'm not able to figure something out we remove it

@AmanRaj1608 AmanRaj1608 merged commit 90c3b51 into dev Jun 27, 2024
1 check passed
@AmanRaj1608 AmanRaj1608 deleted the feat/cache-decode branch June 27, 2024 13:17
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