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

Function NewLocalClientCreator

proxy/client.go:32–37  ·  view source on GitHub ↗

NewLocalClientCreator returns a ClientCreator for the given app, which will be running locally.

(app types.Application)

Source from the content-addressed store, hash-verified

30// NewLocalClientCreator returns a ClientCreator for the given app,
31// which will be running locally.
32func NewLocalClientCreator(app types.Application) ClientCreator {
33 return &localClientCreator{
34 mtx: new(tmsync.Mutex),
35 app: app,
36 }
37}
38
39func (l *localClientCreator) NewABCIClient() (abcicli.Client, error) {
40 return abcicli.NewLocalClient(l.mtx, l.app), nil

Callers 15

TestReapMaxBytesMaxGasFunction · 0.92
TestMempoolFiltersFunction · 0.92
TestMempoolUpdateFunction · 0.92
TestTxsAvailableFunction · 0.92
TestSerialReapFunction · 0.92
TestMempoolTxsBytesFunction · 0.92
BenchmarkReapFunction · 0.92
BenchmarkCheckTxFunction · 0.92
BenchmarkParallelCheckTxFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestReapMaxBytesMaxGasFunction · 0.74
TestMempoolFiltersFunction · 0.74
TestMempoolUpdateFunction · 0.74
TestTxsAvailableFunction · 0.74
TestSerialReapFunction · 0.74
TestMempoolTxsBytesFunction · 0.74
BenchmarkReapFunction · 0.74
BenchmarkCheckTxFunction · 0.74
BenchmarkParallelCheckTxFunction · 0.74