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

Method newFrontendClient

client/clientfactory.go:205–215  ·  view source on GitHub ↗
(
	client workflowservice.WorkflowServiceClient,
	timeout time.Duration,
	longPollTimeout time.Duration,
)

Source from the content-addressed store, hash-verified

203}
204
205func (cf *rpcClientFactory) newFrontendClient(
206 client workflowservice.WorkflowServiceClient,
207 timeout time.Duration,
208 longPollTimeout time.Duration,
209) workflowservice.WorkflowServiceClient {
210 client = frontend.NewClient(timeout, longPollTimeout, client)
211 if cf.metricsHandler != nil {
212 client = frontend.NewMetricClient(client, cf.metricsHandler, cf.throttledLogger)
213 }
214 return client
215}
216
217func newServiceKeyResolver(resolver membership.ServiceResolver) *serviceKeyResolverImpl {
218 return &serviceKeyResolverImpl{

Calls 2

NewClientFunction · 0.92
NewMetricClientFunction · 0.92

Tested by

no test coverage detected