> suggests you should move the wg.Add(1) out of the Goroutine from here:
[...]
> to there

Thanks, that's an actual bug.  

> * Do you happen to know about the context package? It seems like a lot of
> the closedown can happen if you recast part of the system as contexts and
> cancel those explicitly.

I agree, the cancellation logic is a mess.  We'll see if we want to
rethink it

> * Idea: is it possible to construct a variant of the code where MCUpdates
> isn't even there. It looks as if it reads from a channel and fan-outs to a
> multicast group. But why isn't each connectionNode just running the fanout
> itself?

Yeah, that's what I referred to when I said that I had a lot of trouble
keeping the students from building an infrastructure.  They've been
brought up on Java, and taught that one must be modular and avoid copy-paste.

Thanks again,

-- Juliusz

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to