mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 14:33:52 +00:00
Merge pull request #110 from holisticode/nomockdep
p2p/simulations: removed requirement for a mocker from network
This commit is contained in:
commit
a911f75421
1 changed files with 2 additions and 1 deletions
|
|
@ -321,7 +321,8 @@ func (s *Server) StartMocker(w http.ResponseWriter, req *http.Request) {
|
||||||
mockerid := req.Context().Value("mock").(string)
|
mockerid := req.Context().Value("mock").(string)
|
||||||
|
|
||||||
if len(s.Mockers) == 0 {
|
if len(s.Mockers) == 0 {
|
||||||
http.Error(w, "mocker not configured", http.StatusInternalServerError)
|
//don't require a mocker to be present
|
||||||
|
s.JSON(w, http.StatusNotModified, "No mocker configured")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue