Skip to content

Commit

Permalink
feat: shutdown should force stop grpc server (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
lingsamuel authored Dec 17, 2021
1 parent e27f30b commit ab31b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (a *adapter) Serve(ctx context.Context, l net.Listener) error {
}

func (a *adapter) Shutdown(ctx context.Context) error {
a.grpcSrv.GracefulStop()
a.grpcSrv.Stop()

if err := a.httpSrv.Shutdown(ctx); err != nil {
return err
Expand Down

0 comments on commit ab31b6e

Please sign in to comment.