Commit f26d40ed authored by Jakub Sztandera's avatar Jakub Sztandera

bitswap: add few method comments

License: MIT
Signed-off-by: default avatarJakub Sztandera <kubuxu@protonmail.ch>
parent 5b4cb569
......@@ -78,6 +78,8 @@ func (bs *blockService) Exchange() exchange.Interface {
return bs.exchange
}
// NewSession creates a bitswap session that allows for controlled exchange of
// wantlists to decrease the bandwidth overhead.
func NewSession(ctx context.Context, bs BlockService) *Session {
exchange := bs.Exchange()
if bswap, ok := exchange.(*bitswap.Bitswap); ok {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment