Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a49d5e3a authored by Ken Chen's avatar Ken Chen
Browse files

Omit namespace android::net::Experiments

The namespace android::net::Experiments has been included by Using
keyword. No functionality change.

Bug: N/A
Test: build
Change-Id: I79407cea43be2cdc707075c5c1b0c2b38a8cd1ca
parent 426803e1
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1668,8 +1668,8 @@ static int res_queryN_parallel(const char* name, res_target* target, ResState* r
        // Avoiding gateways drop packets if queries are sent too close together
        // Only needed if we have multiple queries in a row.
        if (t->next) {
            int sleepFlag = android::net::Experiments::getInstance()->getFlag(
                    "parallel_lookup_sleep_time", SLEEP_TIME_MS);
            int sleepFlag = Experiments::getInstance()->getFlag("parallel_lookup_sleep_time",
                                                                SLEEP_TIME_MS);
            if (sleepFlag > 1000) sleepFlag = 1000;
            sleepTimeMs = std::chrono::milliseconds(sleepFlag);
        }
@@ -1699,8 +1699,7 @@ static int res_queryN_parallel(const char* name, res_target* target, ResState* r
}

static int res_queryN_wrapper(const char* name, res_target* target, ResState* res, int* herrno) {
    const bool parallel_lookup =
            android::net::Experiments::getInstance()->getFlag("parallel_lookup_release", 1);
    const bool parallel_lookup = Experiments::getInstance()->getFlag("parallel_lookup_release", 1);
    if (parallel_lookup) return res_queryN_parallel(name, target, res, herrno);

    return res_queryN(name, target, res, herrno);