It's closed via a defer which will clean up the goroutine

On Sunday, February 23, 2014, Xiang Li <notifications@github.com> wrote:

> In etcd/requests.go:
>
> > @@ -112,8 +144,40 @@ func (c *Client) sendRequest(method string, relativePath string,
> >  		checkRetry = DefaultCheckRetry
> >  	}
> >
> > +	cancelled := false
> > +
> > +	if cancel != nil {
> > +		stopCancelThread := make(chan bool)
>
> bad naming here. use routine instead.
> Also, I cannot find where you actually send anything to this channel.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/coreos/go-etcd/pull/108/files#r9979798>
> .
>