From d08bbf250abd16a2a6d0bfc1fa15ca96453f6f28 Mon Sep 17 00:00:00 2001 From: rasmus Date: Mon, 7 Nov 2022 00:07:25 +0200 Subject: [PATCH] fix double close on chan --- cmd/submitter.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/submitter.go b/cmd/submitter.go index ffec50c..602d0fd 100644 --- a/cmd/submitter.go +++ b/cmd/submitter.go @@ -69,7 +69,6 @@ func (s *submitter) shipFile(ctx context.Context, name string, recordLimitBytes defer close(lineChan) sendChan := make(chan mLog, SendQueueLimit) - defer close(sendChan) go s.parseLines(recordLimitBytes, lineChan, sendChan)