diff options
Diffstat (limited to 'swarm/network')
-rw-r--r-- | swarm/network/simulation/simulation.go | 2 | ||||
-rw-r--r-- | swarm/network/stream/peer.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/swarm/network/simulation/simulation.go b/swarm/network/simulation/simulation.go index 096f7322c..2c7a18b09 100644 --- a/swarm/network/simulation/simulation.go +++ b/swarm/network/simulation/simulation.go @@ -112,7 +112,7 @@ type Result struct { } // Run calls the RunFunc function while taking care of -// cancelation provided through the Context. +// cancellation provided through the Context. func (s *Simulation) Run(ctx context.Context, f RunFunc) (r Result) { //if the option is set to run a HTTP server with the simulation, //init the server and start it diff --git a/swarm/network/stream/peer.go b/swarm/network/stream/peer.go index 1466a7a9c..5fdaa7b87 100644 --- a/swarm/network/stream/peer.go +++ b/swarm/network/stream/peer.go @@ -165,7 +165,7 @@ func (p *Peer) SendOfferedHashes(s *server, f, t uint64) error { if err != nil { return err } - // true only when quiting + // true only when quitting if len(hashes) == 0 { return nil } |