Skip to content

Commit

Permalink
remove rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ewansheldon committed Jan 8, 2025
1 parent 76cf553 commit b6819d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ 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 {
// if (ip && await limited(ip)) {
// res.writeHead(429, headers);
// } else {
res.writeHead(200, headers);
if (req.url === '/asset_prices') {
res.end(JSON.stringify(await getPrices()));
Expand All @@ -37,7 +37,7 @@ const server = http.createServer(async (req, res) => {
} else if (supplyAddress(req.url)) {
res.end(JSON.stringify(await getSupplyData(req.url)))
}
}
// }

res.end();
});
Expand Down

0 comments on commit b6819d0

Please sign in to comment.