fn assess_child(
        child: &NexusChild,
        max_errors: u32,
        retention_ns: u64,
        query_type: QueryType,
    ) -> bool {
        let earliest_time =
            Instant::now().checked_sub(Duration::from_nanos(retention_ns));
        let res = child.err_store.as_ref().unwrap().query(
            NexusErrStore::READ_FLAG | NexusErrStore::WRITE_FLAG,
            NexusErrStore::IO_FAILED_FLAG,
            earliest_time, // can be None
            query_type,
        );
        res <= max_errors
    }
// Returns false if the child is deemed faulted. This is determined by
// by the number, type and time stamp of the errors stored in the error
// store, filtered by the passed-in flags and compared against a
// configurable limit.
Returns false if the child is deemed faulted. This is determined by
by the number, type and time stamp of the errors stored in the error
store, filtered by the passed-in flags and compared against a
configurable limit.
Returns false if the child is deemed faulted . This is determined by by the number type and time stamp of the errors stored in the error store filtered by the passed - in flags and compared against a configurable limit .
fn assess_child(
        child: &NexusChild,
        max_errors: u32,
        retention_ns: u64,
        query_type: QueryType,
    ) -> bool {
        let earliest_time =
            Instant::now().checked_sub(Duration::from_nanos(retention_ns));
        let res = child.err_store.as_ref().unwrap().query(
            NexusErrStore::READ_FLAG | NexusErrStore::WRITE_FLAG,
            NexusErrStore::IO_FAILED_FLAG,
            earliest_time, // can be None
            query_type,
        );
        res <= max_errors
    }
fn assess_child ( child : & NexusChild , max_errors : u32 , retention_ns : u64 , query_type : QueryType , ) -> bool { let earliest_time = Instant :: now ( ) . checked_sub ( Duration :: from_nanos ( retention_ns ) ) ; let res = child . err_store . as_ref ( ) . unwrap ( ) . query ( NexusErrStore :: READ_FLAG | NexusErrStore :: WRITE_FLAG , NexusErrStore :: IO_FAILED_FLAG , earliest_time , // can be None query_type , ) ; res <= max_errors }
Returns false if the child is deemed faulted.
Returns false if the child is deemed faulted .
child
&NexusChild
max_errors
u32
retention_ns
u64
query_type
QueryType