mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-05-04 03:50:30 +00:00
fix: increase bufio's max buffer size to handle large json lines for big repos
This commit is contained in:
@@ -207,6 +207,8 @@ func processProgressOutput[T ProgressEntryValidator](
|
||||
callback func(T)) (T, error) {
|
||||
|
||||
scanner := bufio.NewScanner(output)
|
||||
// increase the buffer size to handle large JSON lines.
|
||||
scanner.Buffer(make([]byte, 0, 64*1024), 10*1024*1024)
|
||||
scanner.Split(bufio.ScanLines)
|
||||
|
||||
nonJSONOutput := &errorMessageCollector{}
|
||||
|
||||
Reference in New Issue
Block a user