Commit 78dd427b authored by Christopher Schinnerl's avatar Christopher Schinnerl

fix typos

parent e34c9b1b
......@@ -104,7 +104,7 @@ func (hd *Downloader) Sector(root crypto.Hash) (_ modules.RenterContract, _ []by
extendDeadline(hd.conn, connTimeout)
signedTxn, err := negotiateRevision(hd.conn, rev, contract.SecretKey, hd.height)
if err == modules.ErrStopResponse {
// If the host wants to stop communicating after this iteration, closer
// If the host wants to stop communicating after this iteration, close
// our connection; this will cause the next download to fail. However,
// we must delay closing until we've finished downloading the sector.
defer hd.conn.Close()
......
......@@ -35,7 +35,7 @@ func (w *worker) managedDownload(udc *unfinishedDownloadChunk) {
}
defer d.Close()
// If we the download of the chunk is marked as done or if we are shutting
// If the download of the chunk is marked as done or if we are shutting
// down, we close the downloader early to interrupt the download.
go func() {
select {
......
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