server/prom: get rid of unneeded graceful call
This commit is contained in:
parent
dfcc04b38b
commit
59517551e9
1 changed files with 2 additions and 8 deletions
|
@ -65,7 +65,6 @@ func NewServerConfig(srvcfg *chihaya.ServerConfig) (*ServerConfig, error) {
|
|||
type Server struct {
|
||||
cfg *ServerConfig
|
||||
grace *graceful.Server
|
||||
stopped bool
|
||||
}
|
||||
|
||||
var _ server.Server = &Server{}
|
||||
|
@ -85,9 +84,4 @@ func (s *Server) Start() {
|
|||
|
||||
func (s *Server) Stop() {
|
||||
s.grace.Stop(s.cfg.ShutdownTimeout)
|
||||
stopChan := s.grace.StopChan()
|
||||
|
||||
// Block until the graceful server shuts down and closes this channel.
|
||||
for range stopChan {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue