Skip to content

Commit 7ce91e8

Browse files
committed
Revert "fix: bound concurrent max conversion"
This reverts commit c746035.
1 parent c746035 commit 7ce91e8

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

pkg/schema/python/annotations.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package python
22

33
import (
44
"fmt"
5-
"math"
65
"strings"
76

87
sitter "github.com/smacker/go-tree-sitter"
@@ -303,9 +302,6 @@ func decoratorCogConcurrentMax(node *sitter.Node, source []byte, imports *schema
303302
if val.Int < 1 {
304303
return nil, true, schema.WrapError(schema.ErrUnsupportedType, "@concurrent max must be at least 1", nil)
305304
}
306-
if val.Int > int64(math.MaxInt) {
307-
return nil, true, schema.WrapError(schema.ErrUnsupportedType, "@concurrent max is too large", nil)
308-
}
309305
concurrencyMax := int(val.Int)
310306
return &concurrencyMax, true, nil
311307
}

0 commit comments

Comments
 (0)