Skip to content

Commit

Permalink
fix createServiceInfo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DMwangnima committed Dec 29, 2023
1 parent 4264eab commit eb6a589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol/triple/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ func (s *Server) GracefulStop() {
}

func createServiceInfoWithReflection(svc common.RPCService) *server.ServiceInfo {
var info *server.ServiceInfo
var info server.ServiceInfo
val := reflect.ValueOf(svc)
typ := reflect.TypeOf(svc)
methodNum := val.NumMethod()
Expand Down Expand Up @@ -408,5 +408,5 @@ func createServiceInfoWithReflection(svc common.RPCService) *server.ServiceInfo
}
info.Methods = methodInfos

return info
return &info
}

0 comments on commit eb6a589

Please sign in to comment.