-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Bitswap #32
Bitswap #32
Conversation
u "github.com/jbenet/go-ipfs/util" | ||
) | ||
|
||
type mesListener struct { | ||
type MesListener 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.
stylistic: can probably spell it out as swarm.MessageListener
(clearer to people unfamiliar with how things work, etc)
return nil, errors.New("not implemented") | ||
func (bs *BitSwap) HaveBlock(k u.Key) error { | ||
return bs.routing.Provide(k) | ||
} |
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.
Missing here is that we could be tracking our partners
last-received wantlists, so we could see who wants this block and send it right away. I'm not too sure about this, may be premature optimization, because it could waste lots of bandwidth for reducing latency. this will be impt to test/model.
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.
agreed. We can probably just spin off a goroutine to check and manage sending all that information.
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.
(fix to above: ledger already has ledger.WantList
)
Implement ForeachBaggageItem
Remove diaglock as per ipfs#26
update contributing link
add an experiment to prefer TLS 1.3 over secio
…-tls add an experiment to prefer TLS 1.3 over secio
…-tls add an experiment to prefer TLS 1.3 over secio
…-tls add an experiment to prefer TLS 1.3 over secio
gx publish 1.1.36
No description provided.