Skip to content

Commit

Permalink
Fix data race on service Proposal
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Litvinov <[email protected]>
  • Loading branch information
Zensey committed Aug 30, 2024
1 parent 4d39c2d commit 2e9421c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tequilapi/endpoints/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2e9421c

Please sign in to comment.