MCPcopy Create free account
hub / github.com/PasarGuard/node / OutboundsLatency

Method OutboundsLatency

controller/controller.go:252–262  ·  view source on GitHub ↗
(ctx context.Context, request *common.LatencyRequest)

Source from the content-addressed store, hash-verified

250}
251
252func (c *Controller) OutboundsLatency(ctx context.Context, request *common.LatencyRequest) (*common.LatencyResponse, error) {
253 c.mu.RLock()
254 backendSnapshot := c.backend
255 c.mu.RUnlock()
256
257 if backendSnapshot == nil {
258 return &common.LatencyResponse{Latencies: []*common.Latency{}}, nil
259 }
260
261 return backendSnapshot.GetOutboundsLatency(ctx, request)
262}

Callers 2

GetOutboundsLatencyMethod · 0.80
GetOutboundsLatencyMethod · 0.80

Calls 1

GetOutboundsLatencyMethod · 0.65

Tested by

no test coverage detected