[#25] 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>
pull/25/head
Dmitrii Stepanov 2023-04-18 10:51:07 +03:00
parent 84dc99a045
commit 1d691fed57
1 changed files with 0 additions and 1 deletions

View File

@ -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()