diff --git a/debug.go b/debug.go index fe8bc89ff..bc908347c 100644 --- a/debug.go +++ b/debug.go @@ -174,7 +174,7 @@ const pageHTML = ` {{.Service}} {{.Transport}} - {{.Type}} + {{.RPCType}} {{.Endpoint}} {{.State}} {{.Chooser.Name}} diff --git a/dispatcher.go b/dispatcher.go index c209fe09f..f713cd6e1 100644 --- a/dispatcher.go +++ b/dispatcher.go @@ -432,7 +432,7 @@ func (d *Dispatcher) introspect() dispatcherStatus { } else { status.Transport = "Introspection not supported" } - status.Type = "unary" + status.RPCType = "unary" } if o.Oneway != nil { if o, ok := o.Oneway.(introspection.IntrospectableOutbound); ok { @@ -440,7 +440,7 @@ func (d *Dispatcher) introspect() dispatcherStatus { } else { status.Transport = "Introspection not supported" } - status.Type = "oneway" + status.RPCType = "oneway" } status.Service = o.ServiceName outbounds = append(outbounds, status) diff --git a/internal/introspection/outbound.go b/internal/introspection/outbound.go index 704c7567c..61c86acaa 100644 --- a/internal/introspection/outbound.go +++ b/internal/introspection/outbound.go @@ -28,7 +28,7 @@ type IntrospectableOutbound interface { // OutboundStatus is a collection of basics info about an Outbound. type OutboundStatus struct { Transport string - Type string + RPCType string Endpoint string State string Chooser ChooserStatus