forked from TrueCloudLab/frostfs-api-go
[#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>
This commit is contained in:
parent
84dc99a045
commit
1d691fed57
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