Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add Persistence Layer on top of PubSub #33
Add Persistence Layer on top of PubSub #33
Changes from 1 commit
43ebd02
f57d48c
e2a5fca
ff89016
90c980a
3ae7b1f
6fb9435
f3f8dd4
9e9d778
a24054d
092d0e1
3bf24fa
e9b0864
f85f2bc
9756263
a4d4d6c
97ac549
b0eeb77
4fbc97b
aa737d1
ded823d
76d8fca
1913974
fdbeaec
b303f91
0787cb5
41f6fb8
981b38c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Hm. Publish is really going to need to take a context: libp2p/go-libp2p-pubsub#184 (comment).
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.
Yes, removing all the bootstrapping code makes #28 really obvious. It also makes it easy to see that
Publish
's lack of a context while potentially workable is quite problematic if we expectPublish
to be blocking after libp2p/go-libp2p-pubsub#184 lands.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.
nit for later: this should use a select and a
time.After
.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.
Done, although if we really wanted we might be able to up efficiency slightly by reusing a Timer instead of a ticker.