Skip to content

Commit

Permalink
Fox build.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Sep 13, 2017
1 parent c0c62b0 commit 913cf49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server/a_bit_of_everything.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (s *_ABitOfEverythingServer) List(_ *empty.Empty, stream examples.StreamSer
}

// return error when metadata includes error header
if header, ok := metadata.FromContext(stream.Context()); ok {
if header, ok := metadata.FromOutgoingContext(stream.Context()); ok {
if v, ok := header["error"]; ok {
stream.SetTrailer(metadata.New(map[string]string{
"foo": "foo2",
Expand Down

0 comments on commit 913cf49

Please sign in to comment.