MCPcopy Create free account
hub / github.com/temporalio/temporal / newAdminClient

Method newAdminClient

client/clientfactory.go:193–203  ·  view source on GitHub ↗
(
	client adminservice.AdminServiceClient,
	timeout time.Duration,
	longPollTimeout time.Duration,
)

Source from the content-addressed store, hash-verified

191}
192
193func (cf *rpcClientFactory) newAdminClient(
194 client adminservice.AdminServiceClient,
195 timeout time.Duration,
196 longPollTimeout time.Duration,
197) adminservice.AdminServiceClient {
198 client = admin.NewClient(timeout, longPollTimeout, client)
199 if cf.metricsHandler != nil {
200 client = admin.NewMetricClient(client, cf.metricsHandler, cf.throttledLogger)
201 }
202 return client
203}
204
205func (cf *rpcClientFactory) newFrontendClient(
206 client workflowservice.WorkflowServiceClient,

Calls 2

NewClientFunction · 0.92
NewMetricClientFunction · 0.92

Tested by

no test coverage detected