mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
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() {
|
||||
continue
|
||||
}
|
||||
// check the transport matches
|
||||
if node.Metadata["transport"] != m.client.Options().Transport.String() {
|
||||
continue
|
||||
}
|
||||
|
||||
rsp, err := debug.Health(
|
||||
context.Background(),
|
||||
|
Loading…
Reference in New Issue
Block a user