fn _request_summary_iterate(&self, max_num_accounts: &u64, req: (AccountId, TreeMap<u128, OracleRequest>), result: &mut Vec<SummaryJSON>, counter: &mut u64) {
        if *counter == *max_num_accounts || *counter > self.requests.len() {
            return
        }
        let account = req.0;
        let total_requests = req.1.len() as u16;
        result.push(SummaryJSON {
            account,
            total_requests
        });

        *counter += 1;
    }
/// Helper function while iterating through request summaries
Helper function while iterating through request summaries
Helper function while iterating through request summaries
fn _request_summary_iterate(&self, max_num_accounts: &u64, req: (AccountId, TreeMap<u128, OracleRequest>), result: &mut Vec<SummaryJSON>, counter: &mut u64) {
        if *counter == *max_num_accounts || *counter > self.requests.len() {
            return
        }
        let account = req.0;
        let total_requests = req.1.len() as u16;
        result.push(SummaryJSON {
            account,
            total_requests
        });
        *counter += 1;
    }
fn _request_summary_iterate ( & self , max_num_accounts : & u64 , req : ( AccountId , TreeMap < u128 , OracleRequest > ) , result : & mut Vec < SummaryJSON > , counter : & mut u64 ) { if * counter == * max_num_accounts || * counter > self . requests . len ( ) { return } let account = req . 0 ; let total_requests = req . 1 . len ( ) as u16 ; result . push ( SummaryJSON { account , total_requests } ) ; * counter += 1 ; }
Helper function while iterating through request summaries
Helper function while iterating through request summaries
&self
max_num_accounts
&u64
req
(AccountId, TreeMap<u128, OracleRequest>)
result
&mut Vec<SummaryJSON>
counter
&mut u64
&self
max_num_accounts
&u64
req
(AccountId, TreeMap<u128, OracleRequest>)
result
&mut Vec<SummaryJSON>
counter
&mut u64