]> git.giacomolli.uk - onechat/blobdiff - backup.go
Describe queued event delivery boundaries
[onechat] / backup.go
index 517b7c7af5eeeba953aff24e4d90830dd387bf22..c03e633df77666e161d9c636348bfb44977d0bee 100644 (file)
--- a/backup.go
+++ b/backup.go
@@ -37,7 +37,8 @@ func backup(ctx context.Context, path string, out io.Writer) (err error) {
        }()
 
        stop := context.AfterFunc(ctx, func() {
-               _ = conn.Close()
+               // Cancellation closes the socket only to interrupt pending I/O.
+               conn.Close() // nolint: errcheck
        })
 
        defer stop()