Commit 98e7fc1e authored by Matt Joiner's avatar Matt Joiner

Reflow comments

parent b3377755
...@@ -121,8 +121,8 @@ func (s *Swarm) teardown() error { ...@@ -121,8 +121,8 @@ func (s *Swarm) teardown() error {
s.conns.m = nil s.conns.m = nil
s.conns.Unlock() s.conns.Unlock()
// Lots of go routines but we might as well do this in parallel. We want // Lots of goroutines but we might as well do this in parallel. We want to shut down as fast as
// to shut down as fast as possible. // possible.
for l := range listeners { for l := range listeners {
go func(l transport.Listener) { go func(l transport.Listener) {
...@@ -148,8 +148,8 @@ func (s *Swarm) teardown() error { ...@@ -148,8 +148,8 @@ func (s *Swarm) teardown() error {
return nil return nil
} }
// AddAddrFilter adds a multiaddr filter to the set of filters the swarm will // AddAddrFilter adds a multiaddr filter to the set of filters the swarm will use to determine which
// use to determine which addresses not to dial to. // addresses not to dial to.
func (s *Swarm) AddAddrFilter(f string) error { func (s *Swarm) AddAddrFilter(f string) error {
m, err := mafilter.NewMask(f) m, err := mafilter.NewMask(f)
if err != nil { if err != nil {
......
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