Skip to content

Commit

Permalink
pr fix: call open_database in register
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Apr 18, 2024
1 parent bd4401c commit 5b06cba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ exports.register = function () {
plugin.logdebug('Initializing Wild Duck plugin.');
plugin.load_wildduck_ini();

plugin.register_hook('init_master', 'init_wildduck_shared');
plugin.register_hook('init_child', 'init_wildduck_shared');
plugin.register_hook('init_master', 'open_database');
plugin.register_hook('init_child', 'open_database');

plugin.resolver = async (name, rr) => await dns.promises.resolve(name, rr);
};
Expand Down

0 comments on commit 5b06cba

Please sign in to comment.