mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Fix error code
This commit is contained in:
parent
8c577d5829
commit
c27c86e295
1 changed files with 1 additions and 2 deletions
|
|
@ -18,7 +18,6 @@ package rpc
|
|||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
|
@ -162,7 +161,7 @@ func (s *Server) serveSingleRequest(ctx context.Context, codec ServerCodec) {
|
|||
for _, req := range reqs {
|
||||
method := req.Method
|
||||
if _, found := s.denyList[method]; found {
|
||||
resp := errorMessage(&methodNotFoundError{fmt.Sprintf("method %s is in deny list", method)})
|
||||
resp := errorMessage(&methodNotFoundError{method: method})
|
||||
codec.writeJSON(ctx, resp, true)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue