Преглед изворни кода

Merge pull request #6297 from gyuho/grpc-proxy

grpcproxy: fix recursive Context method
Gyu-Ho Lee пре 9 година
родитељ
комит
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
 	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 {
 func (s *chanStream) SendMsg(m interface{}) error {
 	select {
 	select {