mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-21 08:51:32 +00:00
Add Query; Add benchmark tests
This commit is contained in:
@ -127,6 +127,9 @@ func handleRequest(app types.Application, req types.Request, responses chan<- ty
|
||||
case types.RequestRemListener:
|
||||
retCode := app.RemListener(req.EventKey)
|
||||
responses <- types.ResponseRemListener{retCode}
|
||||
case types.RequestQuery:
|
||||
retCode, result := app.Query(req.QueryBytes)
|
||||
responses <- types.ResponseQuery{retCode, result}
|
||||
default:
|
||||
responses <- types.ResponseException{"Unknown request"}
|
||||
}
|
||||
|
Reference in New Issue
Block a user