mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 19:32:17 +08:00 
			
		
		
		
	Add etcd as a service discovery mechanism
This commit is contained in:
		
							parent
							
								
									26561161d1
								
							
						
					
					
						commit
						e0bab94a11
					
				@ -45,10 +45,7 @@ func NewDiscoveryRegister(discovery *config.Discovery, share *config.Share) (dis
 | 
			
		||||
			etcd.WithDialTimeout(10*time.Second),
 | 
			
		||||
			etcd.WithMaxCallSendMsgSize(20*1024*1024),
 | 
			
		||||
			etcd.WithUsernameAndPassword(discovery.Etcd.Username, discovery.Etcd.Password))
 | 
			
		||||
	case "direct":
 | 
			
		||||
		//return direct.NewConnDirect(config)
 | 
			
		||||
	default:
 | 
			
		||||
		return nil, errs.New("unsupported discovery type", "type", discovery.Enable).Wrap()
 | 
			
		||||
	}
 | 
			
		||||
	return nil, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user