From 2e9421c0ba1b79d9ba8d157c3590bd03b7d643df Mon Sep 17 00:00:00 2001 From: Anton Litvinov Date: Mon, 29 Jul 2024 17:11:11 +0400 Subject: [PATCH] Fix data race on service Proposal Signed-off-by: Anton Litvinov --- tequilapi/endpoints/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tequilapi/endpoints/service.go b/tequilapi/endpoints/service.go index 3dea144f53..3202896b69 100644 --- a/tequilapi/endpoints/service.go +++ b/tequilapi/endpoints/service.go @@ -346,7 +346,7 @@ func (se *ServiceEndpoint) toServiceOptions(serviceType string, value *json.RawM } func (se *ServiceEndpoint) toServiceInfoResponse(id service.ID, instance *service.Instance) (contract.ServiceInfoDTO, error) { - priced, err := se.proposalRepository.EnrichProposalWithPrice(instance.Proposal) + priced, err := se.proposalRepository.EnrichProposalWithPrice(instance.CopyProposal()) if err != nil { return contract.ServiceInfoDTO{}, err }