Просмотр исходного кода

Merge pull request #6297 from gyuho/grpc-proxy

grpcproxy: fix recursive Context method
Gyu-Ho Lee 9 лет назад
Родитель
Сommit
452dedf8ab
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      proxy/grpcproxy/watch_client_adapter.go

+ 1 - 1
proxy/grpcproxy/watch_client_adapter.go

@@ -118,7 +118,7 @@ type chanStream struct {
 	ctx   context.Context
 }
 
-func (s *chanStream) Context() context.Context { return s.Context() }
+func (s *chanStream) Context() context.Context { return s.ctx }
 
 func (s *chanStream) SendMsg(m interface{}) error {
 	select {