(ctx context.Context, request *common.LatencyRequest)
| 250 | } |
| 251 | |
| 252 | func (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 | } |
no test coverage detected