Skip to content

Commit 185dda2

Browse files
AlekSiachew22
authored andcommitted
Fix build.
See grpc/grpc-go#1392.
1 parent 824b9a7 commit 185dda2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/a_bit_of_everything.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func (s *_ABitOfEverythingServer) List(_ *empty.Empty, stream examples.StreamSer
134134
}
135135

136136
// return error when metadata includes error header
137-
if header, ok := metadata.FromContext(stream.Context()); ok {
137+
if header, ok := metadata.FromIncomingContext(stream.Context()); ok {
138138
if v, ok := header["error"]; ok {
139139
stream.SetTrailer(metadata.New(map[string]string{
140140
"foo": "foo2",

0 commit comments

Comments
 (0)