Add etcd as a service discovery mechanism

This commit is contained in:
skiffer-git 2024-05-13 17:50:40 +08:00
parent baf98765f2
commit 9c81ba8107

View File

@ -100,6 +100,7 @@ func (r *SvcDiscoveryRegistryImpl) GetConns(ctx context.Context, serviceName str
r.mu.RLock() r.mu.RLock()
defer r.mu.RUnlock() defer r.mu.RUnlock()
fmt.Printf("all conns ", serviceName, r.connMap[fullServiceKey])
return r.connMap[fullServiceKey], nil return r.connMap[fullServiceKey], nil
} }