Remove vestigial GITHUB_DELAY_MS code (#756)

As of #699, the GITHUB_DELAY_MS code is vestigial. It should be removed.

Test plan: After rebuilding the backend, loading a repository still
works.
This commit is contained in:
Dandelion Mané 2018-09-03 11:38:27 -07:00 committed by GitHub
parent eb8f2b975b
commit f3fbb3940b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

View File

@ -120,13 +120,6 @@ function retryGithubFetch(fetch, fetchOptions) {
}
async function postQuery({body, variables}, token): Promise<any> {
// TODO(#638): Find a more principled way to ingest this parameter.
const delayMs: number = parseInt(process.env.GITHUB_DELAY_MS || "0", 10) || 0;
await new Promise((resolve) => {
setTimeout(() => {
resolve();
}, delayMs);
});
const postBody = JSON.stringify({
query: stringify.body(body, inlineLayout()),
variables: variables,