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/pause until dhtops synced #171

Merged
merged 8 commits into from
Apr 11, 2023

Conversation

mattyg
Copy link
Contributor

@mattyg mattyg commented Apr 10, 2023

Resolves #167

  • Implements a utility function pauseUntilDhtEqual that takes an array of Players and a DnaHash. The function returns a promise that resolves when all players have identical arrays of integrated DhtOps in their conductor state.
  • Basic test for function

I don't love the function name - I assume this will be used a lot so the simpler, shorter and clearer the better. Feel free to change it to your preference.

@harlantwood
Copy link

Awesome! On names, suggestions:

  • waitForDhtSync
  • syncDht
  • syncState

@jost-s
Copy link
Contributor

jost-s commented Apr 11, 2023

Brilliant, thank you @mattyg!

I'd go with awaitDhtIntegration or awaitDhtSync.

@jost-s jost-s enabled auto-merge (squash) April 11, 2023 19:46
@jost-s jost-s disabled auto-merge April 11, 2023 19:55
@jost-s jost-s merged commit ac76d99 into holochain:main Apr 11, 2023
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.

Feature Request: function that waits until all agents have identical dht state
3 participants