Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
Signed-off-by: Hayden Blauzvern <[email protected]>
  • Loading branch information
haydentherapper committed Aug 31, 2023
1 parent 9356dd3 commit 71f9651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/app/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ func (g *grpcServer) startTCPListener(wg *sync.WaitGroup) {
log.Logger.Info("stopped grpc server")
}()

wg.Add(1)
go func() {
if g.tlsCertWatcher != nil {
defer g.tlsCertWatcher.Close()
}
wg.Add(1)
if err := g.Server.Serve(lis); err != nil {
log.Logger.Errorf("error shutting down grpcServer: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/app/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ func (h httpServer) startListener(wg *sync.WaitGroup) {
log.Logger.Info("stopped http server")
}()

wg.Add(1)
go func() {
wg.Add(1)
if err := h.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) {
log.Logger.Error(err)
}
Expand Down

0 comments on commit 71f9651

Please sign in to comment.