chore: improve gRPC sync service shutdown behavior (#1375)

Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
This commit is contained in:
Kavindu Dodanduwa 2024-08-05 13:18:25 -07:00 committed by GitHub
parent 4804c17a67
commit 79d9085a50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

View File

@ -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()
} }