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

Client's NextDealID is persisted to disk #66

Closed
hannahhoward opened this issue Jan 22, 2020 · 0 comments · Fixed by #125
Closed

Client's NextDealID is persisted to disk #66

hannahhoward opened this issue Jan 22, 2020 · 0 comments · Fixed by #125

Comments

@hannahhoward
Copy link
Collaborator

As a retrieval client, I would like my next deal id to survive between restarts, so that my client never sends duplicate ids, and providers can treat it as a unique identifier for my machine

--

In:

  • Write next deal id to a data store
  • Rewrite it each time a new deal is made
  • Read it in when the retrieval client starts up

Acceptance criteria:

  • create retrieval client with a datastore
  • make a deal
  • shut down client
  • create a new cliient with the same datastore
  • make a deal
  • verify deal ID was incremented
@hannahhoward hannahhoward changed the title Address NextDealID persistence Client's NextDealID is persisted to disk Jan 27, 2020
@hannahhoward hannahhoward transferred this issue from filecoin-project/go-retrieval-market-project Jan 28, 2020
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 a pull request may close this issue.

1 participant