Summary: Var: removing all async stuff.

No functional changes.
This commit is contained in:
Zhidao HONG
2022-06-02 09:36:35 +08:00
parent 4f16479482
commit 0d2d40e231
3 changed files with 14 additions and 26 deletions

View File

@@ -494,17 +494,12 @@ nxt_var_query(nxt_task_t *task, nxt_var_query_t *query, nxt_var_t *var,
continue; /* NXT_DECLINED */
}
ret = nxt_var_index[index](task, query, value, query->ctx);
ret = nxt_var_index[index](task, value, query->ctx);
if (nxt_slow_path(ret != NXT_OK)) {
goto fail;
}
value = NULL;
if (ret != NXT_OK) {
if (nxt_slow_path(ret != NXT_AGAIN)) {
goto fail;
}
query->waiting++;
}
}
query->spare = value;