server: remove unneded chan in noop server
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
51fbff3e4a
commit
77dab8ee15
@ -405,17 +405,6 @@ func (n *noopServer) Start() error {
|
|||||||
n.wg.Wait()
|
n.wg.Wait()
|
||||||
}
|
}
|
||||||
|
|
||||||
// stop the grpc server
|
|
||||||
exit := make(chan bool)
|
|
||||||
|
|
||||||
go func() {
|
|
||||||
close(exit)
|
|
||||||
}()
|
|
||||||
|
|
||||||
select {
|
|
||||||
case <-exit:
|
|
||||||
}
|
|
||||||
|
|
||||||
// close transport
|
// close transport
|
||||||
ch <- nil
|
ch <- nil
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user