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
d9347a05f0
commit
bd44a3f47b
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