Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Oct 17, 2024
1 parent 8609be5 commit 139eb3e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/json_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func StartJSONRPC(
select {
case <-ctx.Done():

Check warning on line 147 in server/json_rpc.go

View check run for this annotation

Codecov / codecov/patch

server/json_rpc.go#L146-L147

Added lines #L146 - L147 were not covered by tests
// The calling process canceled or closed the provided context, so we must
// gracefully stop the gRPC server.
// gracefully stop the JSON-RPC server.
logger.Info("stopping JSON-RPC server...", "address", config.JSONRPC.Address)
if err := httpSrv.Shutdown(context.Background()); err != nil {
logger.Error("failed to shutdown JSON-RPC server", "error", err.Error())

Check warning on line 152 in server/json_rpc.go

View check run for this annotation

Codecov / codecov/patch

server/json_rpc.go#L150-L152

Added lines #L150 - L152 were not covered by tests
Expand All @@ -161,7 +161,6 @@ func StartJSONRPC(
srvCtx.Logger.Error("failed to start JSON-RPC server", "error", err.Error())
return err
}
return nil
})

srvCtx.Logger.Info("Starting JSON WebSocket server", "address", config.JSONRPC.WsAddress)
Expand Down

0 comments on commit 139eb3e

Please sign in to comment.