LocalAI/pkg/grpc
Ettore Di Giacinto 83110891fd fix(go-grpc-server): always close resultChan
By not closing the channel, if a server not implementing PredictStream
receives a client call would hang indefinetly as would wait for
resultChan to be consumed.

If the prediction stream returns we close the channel now and we wait
for the goroutine to finish.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2024-10-05 00:07:58 +02:00
..
base fix: untangle pkg/grpc and core/schema for Transcription (#3419) 2024-09-02 15:48:53 +02:00
backend.go feat: Add Get Token Metrics to GRPC server (#3687) 2024-10-01 14:41:20 +02:00
client.go feat: Add Get Token Metrics to GRPC server (#3687) 2024-10-01 14:41:20 +02:00
embed.go feat: Add Get Token Metrics to GRPC server (#3687) 2024-10-01 14:41:20 +02:00
interface.go fix: untangle pkg/grpc and core/schema for Transcription (#3419) 2024-09-02 15:48:53 +02:00
server.go fix(go-grpc-server): always close resultChan 2024-10-05 00:07:58 +02:00