MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / queueRequest

Method queueRequest

abci/client/socket_client.go:422–437  ·  view source on GitHub ↗

----------------------------------------

(req *types.Request)

Source from the content-addressed store, hash-verified

420//----------------------------------------
421
422func (cli *socketClient) queueRequest(req *types.Request) *ReqRes {
423 reqres := NewReqRes(req)
424
425 // TODO: set cli.err if reqQueue times out
426 cli.reqQueue <- reqres
427
428 // Maybe auto-flush, or unset auto-flush
429 switch req.Value.(type) {
430 case *types.Request_Flush:
431 cli.flushTimer.Unset()
432 default:
433 cli.flushTimer.Set()
434 }
435
436 return reqres
437}
438
439func (cli *socketClient) flushQueue() {
440 cli.mtx.Lock()

Callers 15

EchoAsyncMethod · 0.95
FlushAsyncMethod · 0.95
InfoAsyncMethod · 0.95
SetOptionAsyncMethod · 0.95
DeliverTxAsyncMethod · 0.95
CheckTxAsyncMethod · 0.95
QueryAsyncMethod · 0.95
CommitAsyncMethod · 0.95
InitChainAsyncMethod · 0.95
BeginBlockAsyncMethod · 0.95
EndBlockAsyncMethod · 0.95
ListSnapshotsAsyncMethod · 0.95

Calls 3

NewReqResFunction · 0.85
UnsetMethod · 0.80
SetMethod · 0.65

Tested by

no test coverage detected