aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/http
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-01-28 04:34:01 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-01-28 04:34:01 +0800
commite9d017ba082bfd624267c974fa93a77da6269756 (patch)
treee9d43020c0c7544969ab7e3906053ded947a7c33 /rpc/http
parentd8c6168d11dda55ffb10bc70601e74e347c156e1 (diff)
downloaddexon-e9d017ba082bfd624267c974fa93a77da6269756.tar.gz
dexon-e9d017ba082bfd624267c974fa93a77da6269756.tar.zst
dexon-e9d017ba082bfd624267c974fa93a77da6269756.zip
Rename api var for clarity
Diffstat (limited to 'rpc/http')
-rw-r--r--rpc/http/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/http/server.go b/rpc/http/server.go
index 631d47110..93b52a634 100644
--- a/rpc/http/server.go
+++ b/rpc/http/server.go
@@ -83,7 +83,7 @@ func (s *RpcHttpServer) Start() {
}
}
-func (s *RpcHttpServer) apiHandler(xeth *rpc.EthereumApi) http.Handler {
+func (s *RpcHttpServer) apiHandler(api *rpc.EthereumApi) http.Handler {
fn := func(w http.ResponseWriter, req *http.Request) {
rpchttplogger.Debugln("Handling request")
@@ -94,7 +94,7 @@ func (s *RpcHttpServer) apiHandler(xeth *rpc.EthereumApi) http.Handler {
}
var response interface{}
- reserr := xeth.GetRequestReply(&reqParsed, &response)
+ reserr := api.GetRequestReply(&reqParsed, &response)
if reserr != nil {
rpchttplogger.Errorln(reserr)
JSON.Send(w, &rpc.RpcErrorResponse{JsonRpc: reqParsed.JsonRpc, ID: reqParsed.ID, Error: true, ErrorText: reserr.Error()})