Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/auctioneer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func main() {
lockIdentifier := &locketmodels.Resource{
Key: auctioneerLockKey,
Owner: cfg.UUID,
TypeCode: locketmodels.LOCK,
TypeCode: locketmodels.TypeCode_LOCK,
Type: locketmodels.LockType,
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/auctioneer/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ var _ = Describe("Auctioneer", func() {
Key: "auctioneer",
Owner: "Your worst enemy.",
Value: "Something",
TypeCode: locketmodels.LOCK,
TypeCode: locketmodels.TypeCode_LOCK,
}

clock := clock.NewClock()
Expand Down
8 changes: 4 additions & 4 deletions resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ func NewLRPStartRequestFromModel(d *models.DesiredLRP, indices ...int) LRPStartR

func NewLRPStartRequestFromSchedulingInfo(s *models.DesiredLRPSchedulingInfo, indices ...int) LRPStartRequest {
return NewLRPStartRequest(
s.ProcessGuid,
s.Domain,
s.DesiredLrpKey.ProcessGuid,
s.DesiredLrpKey.Domain,
indices,
rep.NewResource(s.MemoryMb, s.DiskMb, s.MaxPids),
rep.NewPlacementConstraint(s.RootFs, s.PlacementTags, s.VolumePlacement.DriverNames),
rep.NewResource(s.DesiredLrpResource.MemoryMb, s.DesiredLrpResource.DiskMb, s.DesiredLrpResource.MaxPids),
rep.NewPlacementConstraint(s.DesiredLrpResource.RootFs, s.PlacementTags, s.VolumePlacement.DriverNames),
)
}

Expand Down