Unified Storage: Fix Entity Server unconditionally starting (#88857)

fix Entity Server unconditionally starting
This commit is contained in:
Diego Augusto Molina
2024-06-06 12:17:46 -03:00
committed by GitHub
parent be96971289
commit ae84c5fef9
5 changed files with 43 additions and 9 deletions
@@ -16,6 +16,10 @@ func (s *sqlEntityServer) Delete(ctx context.Context, r *entity.DeleteEntityRequ
ctx, span := s.tracer.Start(ctx, "storage_server.Delete")
defer span.End()
if err := s.Init(); err != nil {
return nil, err
}
key, err := entity.ParseKey(r.Key)
if err != nil {
return nil, fmt.Errorf("delete entity: parse entity key: %w", err)