Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugin/dns-cache/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ export default class DnsCacheAppHook {
'[tegg-dns-cache-plugin] DNS cache is disabled, please setup dnsCache config.',
);
}
}

async configDidLoad() {
const config = this.app.config.dnsCache || {};

// Create DNS resolver instance
Expand All @@ -37,7 +35,9 @@ export default class DnsCacheAppHook {
const lookupFunction = this.dnsResolver.getLookupFunction();
this.app.config.httpclient = this.app.config.httpclient || {};
this.app.config.httpclient.lookup = lookupFunction;
}

async configDidLoad() {
// Add dnsResolver to app
this.app.dnsResolver = this.dnsResolver;
}
Expand Down
1 change: 0 additions & 1 deletion plugin/dns-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"egg": ">=3.32.0"
},
"dependencies": {
"@eggjs/tegg": "^3.70.0",
"ylru": "^2.0.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,4 @@ exports.dnsCache = {
path: path.join(__dirname, '../../../../../'),
};

exports.teggController = {
package: '@eggjs/tegg-controller-plugin',
enable: true,
};

exports.watcher = false;
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,8 @@ exports.teggConfig = {
};

exports.dnsCache = {
path: path.join(__dirname, '../../../../../'),
enable: true,
};

exports.teggController = {
package: '@eggjs/tegg-controller-plugin',
enable: true,
path: path.join(__dirname, '../../../../../'),
};

exports.watcher = false;
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,4 @@ exports.dnsCache = {
path: path.join(__dirname, '../../../../../'),
};

exports.teggController = {
package: '@eggjs/tegg-controller-plugin',
enable: true,
};

exports.watcher = false;
Loading