We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18a1897 commit 46988adCopy full SHA for 46988ad
pkg/qpoption/qpoption.go
@@ -85,6 +85,11 @@ func (p *GateQPOption) ProcessAnnotations() bool {
85
p.config = make(map[string]string)
86
87
scanner := bufio.NewScanner(file)
88
+
89
+ // To support large tokens
90
+ scannerBuf := make([]byte, 0, 64*1024)
91
+ scanner.Buffer(scannerBuf, 1024*1024)
92
93
for scanner.Scan() {
94
txt := scanner.Text()
95
txt = strings.ToLower(txt)
0 commit comments