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
..
2024-06-23 08:24:36 +00:00
2024-06-23 08:24:36 +00:00
2024-06-23 08:24:36 +00:00
2024-06-23 08:24:36 +00:00