mirror of
https://github.com/rclone/rclone.git
synced 2025-01-03 04:49:47 +01:00
config: increase input buffer size to 16k to fix onedrive oauth - fixes #5835
This commit is contained in:
parent
f26abc89a6
commit
1d53714aba
@ -24,9 +24,11 @@ import (
|
|||||||
"golang.org/x/text/unicode/norm"
|
"golang.org/x/text/unicode/norm"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const inputBufferSize = 16 * 1024
|
||||||
|
|
||||||
// ReadLine reads some input
|
// ReadLine reads some input
|
||||||
var ReadLine = func() string {
|
var ReadLine = func() string {
|
||||||
buf := bufio.NewReader(os.Stdin)
|
buf := bufio.NewReaderSize(os.Stdin, inputBufferSize)
|
||||||
line, err := buf.ReadString('\n')
|
line, err := buf.ReadString('\n')
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failed to read line: %v", err)
|
log.Fatalf("Failed to read line: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user