fix: unmarshaling -> unmarshalling on other files

This commit is contained in:
Chomtana 2023-12-11 23:06:56 +07:00
parent e84a39a28f
commit a6a84c0078
2 changed files with 2 additions and 2 deletions

@ -110,7 +110,7 @@ func ParseRPCRes(r io.Reader) (*RPCRes, error) {
res := new(RPCRes)
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

@ -677,7 +677,7 @@ func (s *Server) isGlobalLimit(method string) bool {
func (s *Server) rateLimitSender(ctx context.Context, req *RPCReq) error {
var params []string
if err := json.Unmarshal(req.Params, &params); 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
}