[#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 <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-04-18 10:43:11 +03:00
parent b3ccd0166f
commit 30c5a0f55c

View file

@ -51,7 +51,6 @@ func NewGRPCStreamClientInterceptor() grpc.StreamClientInterceptor {
strWrp := newgRPCClientStream(str, desc, finished, done) strWrp := newgRPCClientStream(str, desc, finished, done)
go func() { go func() {
defer close(finished)
defer close(done) defer close(done)
defer span.End() defer span.End()