mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-05 07:37:14 +00:00
Swap Query return params
This commit is contained in:
+1
-1
@@ -128,7 +128,7 @@ func handleRequest(app types.Application, req types.Request, responses chan<- ty
|
||||
retCode := app.RemListener(req.EventKey)
|
||||
responses <- types.ResponseRemListener{retCode}
|
||||
case types.RequestQuery:
|
||||
retCode, result := app.Query(req.QueryBytes)
|
||||
result, retCode := app.Query(req.QueryBytes)
|
||||
responses <- types.ResponseQuery{retCode, result}
|
||||
default:
|
||||
responses <- types.ResponseException{"Unknown request"}
|
||||
|
||||
Reference in New Issue
Block a user