删除服务注册锁. (#91)

pull/106/head
chen.ma 3 years ago
parent 7cc3b42ad2
commit 7117b03390

@ -55,7 +55,7 @@ public class BaseInstanceRegistry implements InstanceRegistry<InstanceInfo> {
}
@Override
public synchronized void register(InstanceInfo registrant) {
public void register(InstanceInfo registrant) {
Map<String, Lease<InstanceInfo>> registerMap = registry.get(registrant.getAppName());
if (registerMap == null) {
ConcurrentHashMap<String, Lease<InstanceInfo>> registerNewMap = new ConcurrentHashMap(12);

Loading…
Cancel
Save