dependencies(grpcio): bump to fix CI issues (#2362)

feat(grpcio): bump to fix CI issues

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2024-05-21 14:33:47 +02:00 committed by GitHub
parent a58ff00ab1
commit 1a3dedece0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 159 additions and 47 deletions

View file

@ -30,8 +30,10 @@ func (ml *ModelLoader) StopAllExcept(s string) error {
}
func (ml *ModelLoader) deleteProcess(s string) error {
if err := ml.grpcProcesses[s].Stop(); err != nil {
return err
if _, exists := ml.grpcProcesses[s]; exists {
if err := ml.grpcProcesses[s].Stop(); err != nil {
return err
}
}
delete(ml.grpcProcesses, s)
delete(ml.models, s)