-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use bufio.Scanner to read the log
While using the scanner is convenient as it abstracts away EOL handling, it forces the concept of tokens. Tokens have to fit into a particular buffer size, and when logs have tons of uninterrupted text, this causes the program to fail. This commit replaces the use of bufio.Scanner with bufio.Reader. Signed-off-by: Eric Chlebek <[email protected]>
- Loading branch information
Showing
1 changed file
with
25 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters