NewInFlightTrackingClient wraps a gRPC backend client with in-flight tracking.
(inner grpc.Backend, registry InFlightTracker, nodeID, modelName string, replicaIndex int)
| 46 | |
| 47 | // NewInFlightTrackingClient wraps a gRPC backend client with in-flight tracking. |
| 48 | func NewInFlightTrackingClient(inner grpc.Backend, registry InFlightTracker, nodeID, modelName string, replicaIndex int) *InFlightTrackingClient { |
| 49 | return &InFlightTrackingClient{ |
| 50 | ControlBackend: inner, |
| 51 | inner: inner, |
| 52 | registry: registry, |
| 53 | nodeID: nodeID, |
| 54 | modelName: modelName, |
| 55 | replicaIndex: replicaIndex, |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | // OnFirstComplete registers a callback that fires once after the first tracked |
| 60 | // inference call completes. This is used to release the initial in-flight |
no outgoing calls
no test coverage detected