fix double close on chan
This commit is contained in:
		| @@ -69,7 +69,6 @@ func (s *submitter) shipFile(ctx context.Context, name string, recordLimitBytes | |||||||
| 	defer close(lineChan) | 	defer close(lineChan) | ||||||
|  |  | ||||||
| 	sendChan := make(chan mLog, SendQueueLimit) | 	sendChan := make(chan mLog, SendQueueLimit) | ||||||
| 	defer close(sendChan) |  | ||||||
|  |  | ||||||
| 	go s.parseLines(recordLimitBytes, lineChan, sendChan) | 	go s.parseLines(recordLimitBytes, lineChan, sendChan) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user