Ensure transport matches for monitoring service

This commit is contained in:
Asim Aslam 2019-09-20 17:20:15 +01:00
parent 95e4ed8ee9
commit 444cc59250

View File

@ -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(),