diff --git a/contrib/opensergo/opensergo.go b/contrib/opensergo/opensergo.go index 113926fa2..536a8d940 100644 --- a/contrib/opensergo/opensergo.go +++ b/contrib/opensergo/opensergo.go @@ -116,7 +116,7 @@ func (s *OpenSergo) listServiceDescriptors() (services []*v1.ServiceDescriptor, sd = fd.Services().Get(i) ) for j := 0; j < sd.Methods().Len(); j++ { - md := sd.Methods().Get(i) + md := sd.Methods().Get(j) mName := string(md.Name()) inputType := string(md.Input().FullName()) outputType := string(md.Output().FullName())