Skip to content

Commit

Permalink
remove bottleneck (#90)
Browse files Browse the repository at this point in the history
Co-Authored-By: Felix Wotschofsky <[email protected]>
  • Loading branch information
maaaathis and wotschofsky authored Jan 6, 2024
1 parent 551f40a commit a98fb86
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"@types/validator": "^13.11.7",
"@vercel/speed-insights": "^1.0.2",
"autoprefixer": "^10.4.16",
"bottleneck": "^2.19.5",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"dataloader": "^2.2.2",
Expand Down
10 changes: 1 addition & 9 deletions utils/DnsLookup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Bottleneck from 'bottleneck';
import DataLoader from 'dataloader';
import dnsPacket, {
type Answer,
Expand Down Expand Up @@ -134,11 +133,6 @@ class DnsLookup {
});
}

private limiter = new Bottleneck({
maxConcurrent: 10,
minTime: 160,
});

private requestLoader = new DataLoader<
{
domain: string;
Expand All @@ -151,9 +145,7 @@ class DnsLookup {
async (keys) =>
Promise.all(
keys.map(async ({ domain, type, nameserver }) =>
this.limiter.schedule(() =>
this.sendRequest(domain, type, nameserver)
)
this.sendRequest(domain, type, nameserver)
)
),
{
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4142,11 +4142,6 @@ boolbase@^1.0.0:
resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e"
integrity sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==

bottleneck@^2.19.5:
version "2.19.5"
resolved "https://registry.yarnpkg.com/bottleneck/-/bottleneck-2.19.5.tgz#5df0b90f59fd47656ebe63c78a98419205cadd91"
integrity sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==

bplist-parser@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/bplist-parser/-/bplist-parser-0.2.0.tgz#43a9d183e5bf9d545200ceac3e712f79ebbe8d0e"
Expand Down

1 comment on commit a98fb86

@vercel
Copy link

@vercel vercel bot commented on a98fb86 Jan 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

digga – ./

digga-maathis.vercel.app
digga-git-main-maathis.vercel.app
digga.dev
digger.vercel.app

Please sign in to comment.