mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

Reports depended on writing all results to a large buffered channel and reading from that synchronously. Similarly, requests were buffered the same way which can take significant memory on big request strings. Instead, have reports stream in results as they're produced then print when the results channel closes.