src/comm/rate-control/equilRate.js
/**
     * Initialise the rate controller with a passed msg object
     * - Only require the desired TPS from the standard msg options
     * @param {JSON} msg the initialisation message
     */
Initialise the rate controller with a passed msg object
- Only require the desired TPS from the standard msg options
@param {JSON} msg the initialisation message
Initialise the rate controller with a passed msg object - Only require the desired TPS from the standard msg options @param { JSON } msg the initialisation message
init(msg) {
        const tps = this.options.initial_tps;
        const tps_incr = this.options.tps_incr; 
        const max_backlog_txn = this.options.backlog;
        const tpsPerClient = msg.totalClients ? (tps / msg.totalClients) : tps;
        this.cur_tps = tpsPerClient;
        const tpsIncrPerClient = msg.totalClients ? (tps_incr / msg.totalClients) : tps_incr;
        this.tps_incr = tpsIncrPerClient;
        this.backLogPerClient = msg.totalClients ? (max_backlog_txn / msg.totalClients) : max_backlog_txn;
        this.total_sleep_time = 0;
        this.last_idx = 0;
    }
init ( msg ) { const tps = this . options . initial_tps ; const tps_incr = this . options . tps_incr ; const max_backlog_txn = this . options . backlog ; const tpsPerClient = msg . totalClients ? ( tps / msg . totalClients ) : tps ; this . cur_tps = tpsPerClient ; const tpsIncrPerClient = msg . totalClients ? ( tps_incr / msg . totalClients ) : tps_incr ; this . tps_incr = tpsIncrPerClient ; this . backLogPerClient = msg . totalClients ? ( max_backlog_txn / msg . totalClients ) : max_backlog_txn ; this . total_sleep_time = 0 ; this . last_idx = 0 ; }
Initialise the rate controller with a passed msg object
 - Only require the desired TPS from the standard msg options
 @param {JSON} msg the initialisation message
Initialise the rate controller with a passed msg object - Only require the desired TPS from the standard msg options @param { JSON } msg the initialisation message
// tps incremental per sec