Ensure transport matches for monitoring service
This commit is contained in:
parent
95e4ed8ee9
commit
444cc59250
@ -47,6 +47,10 @@ func (m *monitor) check(service string) (*Status, error) {
|
|||||||
if node.Metadata["server"] != m.client.String() {
|
if node.Metadata["server"] != m.client.String() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
// check the transport matches
|
||||||
|
if node.Metadata["transport"] != m.client.Options().Transport.String() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
rsp, err := debug.Health(
|
rsp, err := debug.Health(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
|
Loading…
Reference in New Issue
Block a user