-
Notifications
You must be signed in to change notification settings - Fork 14
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 global store to an Api #122
Conversation
update_data(self, network, &update).await?; | ||
update_metadata(self, &update).await?; |
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.
I don't know what your thoughts are on this. We could implement this on Store
and here pass update_data(self.into(), network, ...)
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.
It seems very nice to me. I love seeing code getting simpler.
I don't love Adaptor name and it's position in the code. I think in the next PR we should change the name of the Adapter to a better name (like State) and move it out of pythd.
p.s: i think in the following PRs might be good to do mechanical moves as a separate commit so reviewing changes be easier. Github diff and difftastic couldn't put removed and added global.rs es together. I know it's a lot to ask while doing this kinds of refactors. So not important that much.
2588b4e
to
bf99855
Compare
This PR follows on from previous refactoring to change the global store from a running service to an API over the recently introduced
Adapter
refactor. While doing so, theglobal.rs
module was moved and the code changed to reflect the new function calls that replace the previous channel based communication.This PR has a followup PR with the same changes to the
local.rs
module. This PR is part of the following refactor: