From 9f62d4679f330d762f017148551cd26e33aa659f Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 17 Jul 2024 13:16:40 -0300 Subject: [PATCH] increase stdin line limit. --- helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers.go b/helpers.go index e3b1348..a761503 100644 --- a/helpers.go +++ b/helpers.go @@ -75,7 +75,7 @@ func writeStdinLinesOrNothing(ch chan string) (hasStdinLines bool) { // piped go func() { 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 for scanner.Scan() { ch <- strings.TrimSpace(scanner.Text())