From 44df7b00cee7997769b3be3cb57d194a11d0f4d4 Mon Sep 17 00:00:00 2001 From: Bill Katz Date: Thu, 28 Nov 2024 23:32:56 -0500 Subject: [PATCH] gridstore: close write channels before end --- datatype/imageblk/imageblk.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/datatype/imageblk/imageblk.go b/datatype/imageblk/imageblk.go index 791a230b..2da65001 100644 --- a/datatype/imageblk/imageblk.go +++ b/datatype/imageblk/imageblk.go @@ -1930,6 +1930,7 @@ func (d *Data) SendGridBlocks(w http.ResponseWriter, blockCoords []dvid.ChunkPoi } writeCh <- &storage.Block{Coord: blockCoord, Value: value} } + close(writeCh) writeWg.Wait() return nil } @@ -1962,6 +1963,7 @@ func (d *Data) SendGridVolume(w http.ResponseWriter, subvol *dvid.Subvolume, gri } return nil }) + close(writeCh) writeWg.Wait() return err }