Skip to content

Commit

Permalink
Address comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
arijitAD committed Sep 17, 2021
1 parent 01259ff commit a14aeb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dot/network/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (h *host) close() error {
return nil
}

// registerStreamHandler registers the stream handler, appending the given sub-protocol to the main protocol ID
// registerStreamHandler registers the stream handler for the given protocol id.
func (h *host) registerStreamHandler(pid protocol.ID, handler func(libp2pnetwork.Stream)) {
h.h.SetStreamHandler(pid, handler)
}
Expand Down

0 comments on commit a14aeb1

Please sign in to comment.