registry: correctly return from go-routine on cancelation

When the the context is cancel we need to return from the go-routine
after de-registering the service.
This commit is contained in:
Ralf Haferkamp
2023-07-13 11:51:53 +02:00
committed by Ralf Haferkamp
parent 5f9c91582e
commit 03fc51d573
+1
View File
@@ -39,6 +39,7 @@ func RegisterService(ctx context.Context, service *mRegistry.Service, logger log
if err != nil {
logger.Err(err).Msgf("Error unregistering external service %v", service.Name)
}
return
}
}
}()