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

*: serve watch service #3800

Merged
merged 1 commit into from
Nov 4, 2015
Merged

*: serve watch service #3800

merged 1 commit into from
Nov 4, 2015

Conversation

xiang90
Copy link
Contributor

@xiang90 xiang90 commented Nov 3, 2015

Implement watch service and hook it up
with grpc server in etcdmain.

Implement watch service and hook it up
with grpc server in etcdmain.
select {
case e := <-watcher.Chan():
err := stream.Send(&pb.WatchResponse{Event: &e})
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

log the error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i am not actually worrying about error handling for now in v3 demo stuff.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok

@yichengq
Copy link
Contributor

yichengq commented Nov 4, 2015

lgtm

xiang90 added a commit that referenced this pull request Nov 4, 2015
@xiang90 xiang90 merged commit 1f1d8e9 into etcd-io:master Nov 4, 2015
@xiang90 xiang90 deleted the watch_server branch November 4, 2015 00:32
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.

None yet

2 participants