Closed BRMatt closed 11 years ago
@BRMatt Thanks for catching this. Take a look at my fix and let me know what you think.
I am pretty sure we have a good fix in place. Feel free to re-open if I am wrong.
Sorry I wasn't able to reply earlier. The fix looks good, much simpler than what I was suggesting. However, shouldn't there be an if c.enabled
check in Channel.Start
to stop it starting the outlet reporter?
:clap:
:boom: :metal:
By the looks of things the meta channel constructed in
main()
is passed around to a few places, so it probably wouldn't be a good idea to pass them a nil reference. I'm a little rusty with go, but am I right in thinking one could create an interface which bothmetchan.Channel
and some othermetchan.fake.Channel
could implement to hide the fact a metchan hasn't been configured?