Adding comment

This commit is contained in:
Frederick F. Kautz IV
2015-04-20 21:01:41 -07:00
parent ff698f1c1a
commit 9e3ca3a92f
+3
View File
@@ -114,6 +114,9 @@ func doCopyCmd(manager clientManager, sourceURL string, targetURLs []string) (st
_, copyErr := io.CopyN(multiWriter, reader, length)
// close writers
for _, writer := range writeClosers {
// it is the target's responsibility to notice if a close is premature.
// on fs, we handle in fs client
// over the wire, the server is responsible
err = writer.Close()
if err != nil {
err = iodine.New(err, nil)