Skip to content

Commit

Permalink
removed listener closing in gracefully shutdown json-rpc server (#550)
Browse files Browse the repository at this point in the history
* removed listener closing in gracefully shutdown json-rpc server

* just logging error from shutdown json-rpc server

---------

Co-authored-by: yihuang <[email protected]>
  • Loading branch information
valli0x and yihuang authored Nov 1, 2024
1 parent 8afdc69 commit e52a555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/json_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func StartJSONRPC(
if err := httpSrv.Shutdown(context.Background()); err != nil {
logger.Error("failed to shutdown JSON-RPC server", "error", err.Error())
}
return ln.Close()
return nil

case err := <-errCh:
if err == http.ErrServerClosed {
Expand Down

0 comments on commit e52a555

Please sign in to comment.