From 30c5a0f55c5ba3ddc8b894250382ccb46d188460 Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Tue, 18 Apr 2023 10:43:11 +0300 Subject: [PATCH] [#24] tracing: Fix panic on closed channel Closed channel is also ready for communication, so select statement can write to it. Signed-off-by: Dmitrii Stepanov --- pkg/tracing/grpc.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/tracing/grpc.go b/pkg/tracing/grpc.go index cea59b07..884ecb2b 100644 --- a/pkg/tracing/grpc.go +++ b/pkg/tracing/grpc.go @@ -51,7 +51,6 @@ func NewGRPCStreamClientInterceptor() grpc.StreamClientInterceptor { strWrp := newgRPCClientStream(str, desc, finished, done) go func() { - defer close(finished) defer close(done) defer span.End()