fix: unmarshaling -> unmarshalling on other files
This commit is contained in:
parent
e84a39a28f
commit
a6a84c0078
@ -110,7 +110,7 @@ func ParseRPCRes(r io.Reader) (*RPCRes, error) {
|
|||||||
|
|
||||||
res := new(RPCRes)
|
res := new(RPCRes)
|
||||||
if err := json.Unmarshal(body, res); err != nil {
|
if err := json.Unmarshal(body, res); err != nil {
|
||||||
return nil, wrapErr(err, "error unmarshaling RPC response")
|
return nil, wrapErr(err, "error unmarshalling RPC response")
|
||||||
}
|
}
|
||||||
|
|
||||||
return res, nil
|
return res, nil
|
||||||
|
@ -677,7 +677,7 @@ func (s *Server) isGlobalLimit(method string) bool {
|
|||||||
func (s *Server) rateLimitSender(ctx context.Context, req *RPCReq) error {
|
func (s *Server) rateLimitSender(ctx context.Context, req *RPCReq) error {
|
||||||
var params []string
|
var params []string
|
||||||
if err := json.Unmarshal(req.Params, ¶ms); err != nil {
|
if err := json.Unmarshal(req.Params, ¶ms); err != nil {
|
||||||
log.Debug("error unmarshaling raw transaction params", "err", err, "req_Id", GetReqID(ctx))
|
log.Debug("error unmarshalling raw transaction params", "err", err, "req_Id", GetReqID(ctx))
|
||||||
return ErrParseErr
|
return ErrParseErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user