|
@ -128,7 +128,7 @@ func handleRequest(app types.Application, req types.Request, responses chan<- ty |
|
|
retCode := app.RemListener(req.EventKey) |
|
|
retCode := app.RemListener(req.EventKey) |
|
|
responses <- types.ResponseRemListener{retCode} |
|
|
responses <- types.ResponseRemListener{retCode} |
|
|
case types.RequestQuery: |
|
|
case types.RequestQuery: |
|
|
retCode, result := app.Query(req.QueryBytes) |
|
|
|
|
|
|
|
|
result, retCode := app.Query(req.QueryBytes) |
|
|
responses <- types.ResponseQuery{retCode, result} |
|
|
responses <- types.ResponseQuery{retCode, result} |
|
|
default: |
|
|
default: |
|
|
responses <- types.ResponseException{"Unknown request"} |
|
|
responses <- types.ResponseException{"Unknown request"} |
|
|