mirror of
				https://github.com/go-kratos/kratos.git
				synced 2025-10-30 23:47:59 +02:00 
			
		
		
		
	resolver/discovery: fix endpoint, scheme don't match grpc (#831)
This commit is contained in:
		| @@ -46,6 +46,9 @@ func (r *discoveryResolver) update(ins []*registry.ServiceInstance) { | ||||
| 			r.log.Errorf("Failed to parse discovery endpoint: %v", err) | ||||
| 			continue | ||||
| 		} | ||||
| 		if endpoint == "" { | ||||
| 			continue | ||||
| 		} | ||||
| 		addr := resolver.Address{ | ||||
| 			ServerName: in.Name, | ||||
| 			Attributes: parseAttributes(in.Metadata), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user