From: Matt Joiner Date: Tue, 12 Sep 2017 08:31:10 +0000 (+1000) Subject: storage: Add TODO about handling Close errors X-Git-Tag: v1.0.0~408^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=cee24fe21b566612939aedbea62be7501589036d;p=btrtrc.git storage: Add TODO about handling Close errors --- diff --git a/storage/file.go b/storage/file.go index f4ab0913..48a14312 100644 --- a/storage/file.go +++ b/storage/file.go @@ -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