Skip to content

Commit

Permalink
Update TYPE to RPCType for outbound status (can't do it for handlerspec
Browse files Browse the repository at this point in the history
because handlerspec is public)
  • Loading branch information
Will Hughes committed Feb 1, 2017
1 parent 6398b28 commit 767ab2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ const pageHTML = `
<tr>
<td>{{.Service}}</td>
<td>{{.Transport}}</td>
<td>{{.Type}}</td>
<td>{{.RPCType}}</td>
<td>{{.Endpoint}}</td>
<td>{{.State}}</td>
<td>{{.Chooser.Name}}</td>
Expand Down
4 changes: 2 additions & 2 deletions dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,15 +432,15 @@ 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 {
status = o.Introspect()
} else {
status.Transport = "Introspection not supported"
}
status.Type = "oneway"
status.RPCType = "oneway"
}
status.Service = o.ServiceName
outbounds = append(outbounds, status)
Expand Down
2 changes: 1 addition & 1 deletion internal/introspection/outbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 767ab2b

Please sign in to comment.