Skip to content

Commit

Permalink
try removing limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
ewansheldon committed Jan 17, 2025
1 parent 48efc26 commit f7a7316
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ const server = http.createServer(async (req, res) => {
};
const ip = req.headers['x-forwarded-for'] ||
req.socket.remoteAddress;
if (ip && await limited(ip)) {
res.writeHead(429, headers);
} else {
console.log('hello')
// if (ip && await limited(ip)) {
// res.writeHead(429, headers);
// } else {
res.writeHead(200, headers);
console.log('hi')
if (req.url === '/asset_prices') {
res.end(JSON.stringify(await getPrices()));
} else if (estimateSwapUrl(req.url)) {
Expand All @@ -41,7 +39,7 @@ const server = http.createServer(async (req, res) => {
} else if (supplyAddress(req.url)) {
res.end(JSON.stringify(await getSupplyData(req.url)))
}
}
// }

console.log('end')
res.end();
Expand Down

0 comments on commit f7a7316

Please sign in to comment.