]> Sergey Matveev's repositories - btrtrc.git/commitdiff
storage: Add TODO about handling Close errors
authorMatt Joiner <anacrolix@gmail.com>
Tue, 12 Sep 2017 08:31:10 +0000 (18:31 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 12 Sep 2017 08:31:56 +0000 (18:31 +1000)
storage/file.go

index f4ab0913c4aa6d7b17130d822c138e3253e7991c..48a14312e61c2f318c0ffce6a72976e80f2cd4ce 100644 (file)
@@ -200,6 +200,7 @@ func (fst fileTorrentImplIO) WriteAt(p []byte, off int64) (n int, err error) {
                        return
                }
                n1, err = f.WriteAt(p[:n1], off)
+               // TODO: On some systems, write errors can be delayed until the Close.
                f.Close()
                if err != nil {
                        return