chore: improve gRPC sync service shutdown behavior (#1375)
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
This commit is contained in:
parent
4804c17a67
commit
79d9085a50
|
|
@ -119,10 +119,7 @@ func (s *Service) Emit(isResync bool, source string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Service) shutdown() {
|
func (s *Service) shutdown() {
|
||||||
err := s.listener.Close()
|
s.logger.Info("shutting down gRPC sync service")
|
||||||
if err != nil {
|
|
||||||
s.logger.Warn(fmt.Sprintf("error closing the listener: %v", err))
|
|
||||||
}
|
|
||||||
s.server.Stop()
|
s.server.Stop()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue