mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
bugfix when creating subscription for non-existing method
This commit is contained in:
parent
b362afcf93
commit
cdb75624fe
1 changed files with 1 additions and 1 deletions
|
|
@ -456,7 +456,7 @@ func (s *Server) readRequest(codec ServerCodec) ([]*serverRequest, bool, RPCErro
|
|||
}
|
||||
}
|
||||
} else {
|
||||
requests[i].err = &methodNotFoundError{subscribeMethod, r.method}
|
||||
requests[i] = &serverRequest{id: r.id, err: &methodNotFoundError{subscribeMethod, r.method}}
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue