This commit is contained in:
crusader 2017-10-27 11:44:41 +09:00
parent 07821c7cae
commit 529bab00a6

View File

@ -63,7 +63,7 @@ func (m *serviceMap) register(rcvr interface{}, name string) error {
return fmt.Errorf("rpc: no service name for type %q", return fmt.Errorf("rpc: no service name for type %q",
s.rcvrType.String()) s.rcvrType.String())
} }
log.Printf("The name of service is %s", s.name) log.Printf("method count of service[%s] is %d", s.name, s.rcvrType.NumMethod())
// Setup methods. // Setup methods.
for i := 0; i < s.rcvrType.NumMethod(); i++ { for i := 0; i < s.rcvrType.NumMethod(); i++ {
method := s.rcvrType.Method(i) method := s.rcvrType.Method(i)