Explorar el Código

grpcproxy: fix recursive Context method

Gyu-Ho Lee hace 9 años
padre
commit
86bf2bc443
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {