@Override
    public void lazyInit(
            CodecService codecService,
            ConnectionService connectionService,
            DiscoveryService discoveryService,
            IdService idService,
            RpcService rpcService,
            SharedConfigService sharedConfigService) {
        this.connectionService = connectionService;
        this.connectionService
                .addMemberConnectionListenerSupplier(() -> new MemberConnectionListener() {
                    private Member member;

                    @Override
                    public void onOpeningHandshakeCompleted(Member member) {
                        this.member = member;
                        updateOtherActiveConnectedMemberList(true, member);
                    }

                    @Override
                    public void onConnectionClosed() {
                        if (member != null) {
                            updateOtherActiveConnectedMemberList(false, member);
                        }
                    }
                });
    }
@return a positive or negative number, and never 0 to ensure that the order is consistent in
        every node.
turms-server-common/src/main/java/im/turms/server/common/infra/cluster/service/discovery/DiscoveryService.java