MCPcopy
hub / github.com/mudler/LocalAI / infiniteForwardClient

Struct infiniteForwardClient

core/services/cloudproxy/backend_forward_test.go:94–97  ·  view source on GitHub ↗

infiniteForwardClient simulates a misbehaving backend that never stops emitting replies. Used to verify Close() doesn't spin forever.

Source from the content-addressed store, hash-verified

92// infiniteForwardClient simulates a misbehaving backend that never
93// stops emitting replies. Used to verify Close() doesn't spin forever.
94type infiniteForwardClient struct {
95 ctx context.Context
96 calls int
97}
98
99func (s *infiniteForwardClient) Send(*pb.ForwardRequest) error { return nil }
100func (s *infiniteForwardClient) CloseSend() error { return nil }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected