Skip to content

Commit

Permalink
Unreverse ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
tgerring committed May 14, 2015
1 parent 5c65404 commit 44a7f99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rpc/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ func JSONRPC(pipe *xeth.XEth) http.Handler {

// make response omitting nil entries
respBatchComp := make([]*interface{}, resCount)
resCount = resCount - 1
for _, v := range resBatch {
if v != nil {
respBatchComp[resCount] = v
respBatchComp[len(respBatchComp)-resCount] = v
resCount = resCount - 1
}
}
Expand Down

0 comments on commit 44a7f99

Please sign in to comment.