Closed CHTJonas closed 3 years ago
The other way we could handle this is to use an errgroup instead of a simple waitgroup.
Rebased on top of the logger changes.
Ping @sparrc for a review please! 🥺
Superseded by ff8be3320020b96856d3d48505bcf8926809752e.
Currently we throw errors from the
pinger.recvICMP
function away which is very much non-ideal. While having a library print logs to the stdout is also far from ideal, it's arguably a less evil than not reporting them at all at least until such a time that we can implement a proper error-returning or logging interface (#16).