Skip to content

Commit

Permalink
Limit minimum num_fast_render_points
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat authored Nov 20, 2024
1 parent 76bdcda commit 0bcdafe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ func (c *commandContext) NumFastRenderPoints() int {
}

func (c *commandContext) SetNumFastRenderPoints(n int) error {
if n <= 0 {
return errors.New("num fast render points must be >0")
if n <= 100000 {
return errors.New("num fast render points must be >100000")
}
c.numFastRenderPoints = n
return nil

Check warning on line 192 in command.go

View check run for this annotation

Codecov / codecov/patch

command.go#L187-L192

Added lines #L187 - L192 were not covered by tests
Expand Down

0 comments on commit 0bcdafe

Please sign in to comment.