forked from TrueCloudLab/frostfs-api-go
[#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:
parent
b3ccd0166f
commit
30c5a0f55c
1 changed files with 0 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue