|
|
@ -120,6 +120,7 @@ func (ws *WServer) SetWriteTimeoutWriteMsg(conn *UserConn, a int, msg []byte, ti
|
|
|
|
|
|
|
|
|
|
|
|
func (ws *WServer) MultiTerminalLoginRemoteChecker(userID string, platformID int32, token string, operationID string) {
|
|
|
|
func (ws *WServer) MultiTerminalLoginRemoteChecker(userID string, platformID int32, token string, operationID string) {
|
|
|
|
grpcCons := getcdv3.GetConn4Unique(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), config.Config.RpcRegisterName.OpenImRelayName)
|
|
|
|
grpcCons := getcdv3.GetConn4Unique(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), config.Config.RpcRegisterName.OpenImRelayName)
|
|
|
|
|
|
|
|
log.NewInfo(operationID, utils.GetSelfFuncName(), " grpcCons: ", grpcCons)
|
|
|
|
for _, v := range grpcCons {
|
|
|
|
for _, v := range grpcCons {
|
|
|
|
if v.Target() == rpcSvr.target {
|
|
|
|
if v.Target() == rpcSvr.target {
|
|
|
|
log.Debug(operationID, "Filter out this node ", rpcSvr.target)
|
|
|
|
log.Debug(operationID, "Filter out this node ", rpcSvr.target)
|
|
|
|