raintank / raintank-probe

27 stars 12 forks source link

simplify #21

Closed Dieterbe closed 8 years ago

Dieterbe commented 8 years ago

this should be equivalent, but simpler I don't understand why it would run in a goroutine but you use a channel to wait for the result anyway.

(note: untested)

woodsaj commented 8 years ago

hmm, i also have no idea why i spawned the additional go-routine. It is certainly not needed.