Fix scanner usage without error handling
This commit is contained in:
parent
d1dfda86ee
commit
084e585c2a
11 changed files with 33 additions and 38 deletions
|
|
@ -130,7 +130,7 @@ func parseTCPStats(r io.Reader) (map[tcpConnectionState]float64, error) {
|
|||
tcpStats[tcpConnectionState(st)]++
|
||||
}
|
||||
|
||||
return tcpStats, nil
|
||||
return tcpStats, scanner.Err()
|
||||
}
|
||||
|
||||
func (st tcpConnectionState) String() string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue