Skip to content

Commit

Permalink
chore: Rename remove offer method
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed Dec 18, 2024
1 parent 3025581 commit 22fa34c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/solver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,8 @@ func (controller *SolverController) addResourceOffer(resourceOffer data.Resource
return ret, nil
}

func (controller *SolverController) removeResourceOfferByResourceProvider(ID string) error {
// Remove resource offers in an unmatched DealNegotiating[0] state
func (controller *SolverController) removeUnmatchedResourceOffers(ID string) error {
controller.log.Info("remove resource offer", ID)
resourceOffers, err := controller.store.GetResourceOffers(store.GetResourceOffersQuery{
ResourceProvider: ID,
Expand Down
2 changes: 1 addition & 1 deletion pkg/solver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (solverServer *solverServer) disconnectCB(connParams http.WSConnectionParam
CountryCode: connParams.CountryCode,
IP: connParams.IP,
})
solverServer.controller.removeResourceOfferByResourceProvider(connParams.ID)
solverServer.controller.removeUnmatchedResourceOffers(connParams.ID)
}
}

Expand Down

0 comments on commit 22fa34c

Please sign in to comment.