Skip to content

Commit

Permalink
ping moar
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankcorn committed Oct 30, 2023
1 parent 5bef805 commit 744e314
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ping/ping.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async function ping() {
"Abra",
];

const requests = ["search", "scan", "get", "get", "get", "get", "get", "get", "get", "get", "vercel"].flatMap((el) => Array(random(1, 3)).fill(el)).sort(() => Math.random() - 0.5);
const requests = ["search", "scan", "get", "get", "get", "get", "get", "get", "get", "get", "vercel", "cloudflare"].flatMap((el) => Array(random(1, 3)).fill(el)).sort(() => Math.random() - 0.5);
console.log(requests)
for (let req of requests) {
try {
Expand All @@ -108,6 +108,9 @@ async function ping() {
await axios.get(`https://t3-app-rouge.vercel.app/api/trpc/post.getLatest`).catch((e) => { console.log(e)});
await axios.get(`https://nodejs-serverless-function-express-bice-sigma.vercel.app/api/hello`).catch((e) => { console.log(e)});
}
if(req === "cloudflare") {
await axios.get("https://cloudflare-otel-playground.baselime.workers.dev/").catch(e => { console.log(e) })
}
} catch (e) { console.log(e)}

await wait(1000);
Expand Down

0 comments on commit 744e314

Please sign in to comment.