Skip to content

Conversation

@Reisen
Copy link
Contributor

@Reisen Reisen commented May 14, 2024

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, the global.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:

@Reisen Reisen force-pushed the push-xkzklrrorlrn branch from 36523e7 to 49ce184 Compare May 14, 2024 13:52
Comment on lines +194 to +183
update_data(self, network, &update).await?;
update_metadata(self, &update).await?;
Copy link
Collaborator

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, ...)

Copy link
Collaborator

@ali-behjati ali-behjati left a 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.

@Reisen Reisen force-pushed the push-xkzklrrorlrn branch 2 times, most recently from 2588b4e to bf99855 Compare May 21, 2024 10:26
@Reisen Reisen force-pushed the push-xkzklrrorlrn branch from bf99855 to b91f96f Compare May 21, 2024 10:52
@Reisen Reisen merged commit 2d074fb into main May 22, 2024
@Reisen Reisen deleted the push-xkzklrrorlrn branch May 22, 2024 08:20
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.

4 participants