-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Make it parallel. - Sleep is not needed in a normal loop since a condition variable is used. Only sleep when error happens at system level, then retry in next loop - Move `bufReader` out of `Collector`, since it cannot be shared by multiple goroutines. Signed-off-by: Xinfeng Liu <XinfengLiu@icloud.com>
- Loading branch information
1 parent
6ce5aa1
commit 62759c2
Showing
2 changed files
with
67 additions
and
39 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
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