Skip to content

Commit

Permalink
chore: improve gRPC sync service shutdown behavior (#1375)
Browse files Browse the repository at this point in the history
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
  • Loading branch information
Kavindu-Dodan authored Aug 5, 2024
1 parent 4804c17 commit 79d9085
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions flagd/pkg/service/flag-sync/sync_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,7 @@ func (s *Service) Emit(isResync bool, source string) {
}

func (s *Service) shutdown() {
err := s.listener.Close()
if err != nil {
s.logger.Warn(fmt.Sprintf("error closing the listener: %v", err))
}
s.logger.Info("shutting down gRPC sync service")
s.server.Stop()
}

Expand Down

0 comments on commit 79d9085

Please sign in to comment.