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:
parent
eb8f2b975b
commit
f3fbb3940b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue