-
Notifications
You must be signed in to change notification settings - Fork 223
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 broadcast state machine for storing records in the DHT #930
Conversation
824afd7
to
d4da2c8
Compare
2e5e248
to
20c19a7
Compare
return &StateBroadcastFinished[K, N]{ | ||
QueryID: st.QueryID, | ||
Contacted: make([]N, 0), | ||
Errors: map[string]struct { |
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.
Maybe add a timeout error here
4fdc6cf
to
e43f410
Compare
1b75491
to
1680add
Compare
afa4f90
to
5ae6392
Compare
"github.com/libp2p/go-libp2p-kad-dht/v2/tele" | ||
) | ||
|
||
type PooledBroadcastBehaviour struct { |
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.
Add comment for this type
@@ -11,6 +11,15 @@ import ( | |||
"github.com/libp2p/go-libp2p-kad-dht/v2/pb" | |||
) | |||
|
|||
// TODO: rename to something like OperationID. This type isn't only used to identify queries but also other operations like broadcasts. |
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.
Agree. OperationID seems a good name for it.
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.
LGTM
A few comments that can be done here or in a follow up
Will do in a follow-up 👍 |
fixes: #914