From cee24fe21b566612939aedbea62be7501589036d Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 12 Sep 2017 18:31:10 +1000 Subject: [PATCH] storage: Add TODO about handling Close errors --- storage/file.go | 1 + 1 file changed, 1 insertion(+) 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 -- 2.48.1