| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 803e920 commit 8dc0b2a
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -68,7 +68,8 @@ const DEFAULT_CONFIG = { | |||
| 68 | 68 | theme: '' | |
| 69 | 69 | }, | |
| 70 | 70 | network: { | |
| 71 | - concurrency: 10 | ||
| 71 | + concurrency: 10, | ||
| 72 | + delay: 1 | ||
| 72 | 73 | }, | |
| 73 | 74 | plugins: {} | |
| 74 | 75 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -179,7 +179,7 @@ function runCode(opts, problem, cb) { | |||
| 179 | 179 | opts.headers.Origin = config.sys.urls.base; | |
| 180 | 180 | opts.headers.Referer = problem.link; | |
| 181 | 181 | opts.json = true; | |
| 182 | - opts._delay = opts._delay || 1; // in seconds | ||
| 182 | + opts._delay = opts._delay || config.network.delay || 1; // in seconds | ||
| 183 | 183 | ||
| 184 | 184 | opts.body = opts.body || {}; | |
| 185 | 185 | _.extendOwn(opts.body, { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments