Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clientv3: let watchers cancel when reconnecting #6816

Merged
merged 2 commits into from
Nov 8, 2016

Conversation

heyitsanthony
Copy link
Contributor

/cc @yudai

// receive data from new grpc stream
go w.serveWatchClient(wc)
return wc, nil
}

func (w *watchGrpcStream) waitCancelSubstreams() (chan<- struct{}, <-chan struct{}) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waitCancelSubStreams(stopc chan <-struct{}) <-chan struct{}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's pass in the stopc instead of returning it?

@xiang90
Copy link
Contributor

xiang90 commented Nov 7, 2016

LGTM

@heyitsanthony heyitsanthony force-pushed the fix-disconn-cancel branch 2 times, most recently from f097adf to 1aeeb38 Compare November 8, 2016 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants