forceKickOff work

pull/265/head
skiffer-git 2 years ago
parent c52bdce621
commit 57a21ab8e6

@ -82,7 +82,7 @@ func (rpc *rpcAuth) ForceLogout(_ context.Context, req *pbAuth.ForceLogoutReq) (
}
func (rpc *rpcAuth) forceKickOff(userID string, platformID int32, operationID string) error {
return nil
log.NewInfo(operationID, utils.GetSelfFuncName(), " args ", userID, platformID)
grpcCons := getcdv3.GetConn4Unique(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), config.Config.RpcRegisterName.OpenImRelayName)
for _, v := range grpcCons {
client := pbRelay.NewRelayClient(v)
@ -91,7 +91,6 @@ func (rpc *rpcAuth) forceKickOff(userID string, platformID int32, operationID st
_, err := client.KickUserOffline(context.Background(), kickReq)
return utils.Wrap(err, "")
}
return errors.New("no rpc node ")
}

Loading…
Cancel
Save