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

refactor(agent): convert local store to an Api #123

Merged
merged 1 commit into from
May 27, 2024
Merged

Conversation

Reisen
Copy link
Contributor

@Reisen Reisen commented May 27, 2024

This PR follows on from previous refactoring to change the local store from a running service to an API over the recently introduced Adapter refactor.

This PR is part of the following refactor:

}

pub struct Store {
prices: RwLock<HashMap<PriceIdentifier, PriceInfo>>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

not for this one as it's restructing, but in the future DashMap would make it better because update seems to be for each price feed.

Copy link
Collaborator

@ali-bahjati ali-bahjati left a comment

Choose a reason for hiding this comment

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

Very nice!

@Reisen Reisen merged commit c5a717e into main May 27, 2024
2 checks passed
@Reisen Reisen deleted the push-zvxowwnrmtul branch May 27, 2024 15:28
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