Skip to content

Commit

Permalink
relax hru validation according to 586, to be double checked
Browse files Browse the repository at this point in the history
  • Loading branch information
xmonader committed Dec 28, 2023
1 parent 089e3a4 commit 4686f3e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions farmerbot/internal/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,12 @@ func (s *state) validate() error {
if n.resources.total.mru == 0 {
return fmt.Errorf("node %d: total MRU is required", n.ID)
}
if n.resources.total.hru == 0 {
return fmt.Errorf("node %d: total HRU is required", n.ID)
}


Check failure on line 249 in farmerbot/internal/state.go

View workflow job for this annotation

GitHub Actions / Run Lint (farmerbot)

File is not `gofmt`-ed with `-s` (gofmt)

Check failure on line 249 in farmerbot/internal/state.go

View workflow job for this annotation

GitHub Actions / Run Lint (farmerbot)

File is not `gofmt`-ed with `-s` (gofmt)

Check failure on line 249 in farmerbot/internal/state.go

View workflow job for this annotation

GitHub Actions / Run Lint (farmerbot)

File is not `gofmt`-ed with `-s` (gofmt)

Check failure on line 249 in farmerbot/internal/state.go

View workflow job for this annotation

GitHub Actions / Run Lint (farmerbot)

File is not `gofmt`-ed with `-s` (gofmt)
// visit: https://github.com/threefoldtech/tfgrid-sdk-go/issues/586
// if n.resources.total.hru == 0 {
// return fmt.Errorf("node %d: total HRU is required", n.ID)
// }
}

// required values for power
Expand Down

0 comments on commit 4686f3e

Please sign in to comment.