server: remove unneded chan in noop server

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-11-10 10:58:32 +03:00
parent 51fbff3e4a
commit 77dab8ee15

View File

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