config: increase input buffer size to 16k to fix onedrive oauth - fixes #5835

This commit is contained in:
Nick Craig-Wood 2021-11-23 17:51:53 +00:00
parent f26abc89a6
commit 1d53714aba
1 changed files with 3 additions and 1 deletions

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)