Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Nick Craig-Wood
1d53714aba config: increase input buffer size to 16k to fix onedrive oauth - fixes #5835 2021-11-23 17:51:53 +00:00

View file

@ -24,9 +24,11 @@ import (
"golang.org/x/text/unicode/norm"
)
const inputBufferSize = 16 * 1024
// ReadLine reads some input
var ReadLine = func() string {
buf := bufio.NewReader(os.Stdin)
buf := bufio.NewReaderSize(os.Stdin, inputBufferSize)
line, err := buf.ReadString('\n')
if err != nil {
log.Fatalf("Failed to read line: %v", err)