Skip to content

Commit

Permalink
fix: lint error.
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy committed Jan 10, 2025
1 parent 3bbbccb commit c27d1c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions delivery/grpc/shutdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ func newShutdownServer(server *Server, shdCh chan struct{}) *shutdownServer {
}
}

func (s shutdownServer) Shutdown(ctx context.Context, r *rpb.ShutdownRequest) (*rpb.ShutdownResponse, error) {
func (s shutdownServer) Shutdown(_ context.Context, r *rpb.ShutdownRequest) (*rpb.ShutdownResponse, error) {
logger.Info("shutdown signal received from grpc", "caller", r.String())
sig := new(struct{})
s.shdCh <- *sig

return nil, nil
s.shdCh <- struct{}{}

return &rpb.ShutdownResponse{}, nil
}

0 comments on commit c27d1c0

Please sign in to comment.