mirror of
https://github.com/fiatjaf/nak.git
synced 2024-10-30 00:59:07 -04:00
increase stdin line limit.
This commit is contained in:
parent
809865ca0c
commit
9f62d4679f
|
@ -75,7 +75,7 @@ func writeStdinLinesOrNothing(ch chan string) (hasStdinLines bool) {
|
||||||
// piped
|
// piped
|
||||||
go func() {
|
go func() {
|
||||||
scanner := bufio.NewScanner(os.Stdin)
|
scanner := bufio.NewScanner(os.Stdin)
|
||||||
scanner.Buffer(make([]byte, 16*1024), 256*1024)
|
scanner.Buffer(make([]byte, 16*1024*1024), 256*1024*1024)
|
||||||
hasEmittedAtLeastOne := false
|
hasEmittedAtLeastOne := false
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
ch <- strings.TrimSpace(scanner.Text())
|
ch <- strings.TrimSpace(scanner.Text())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user