You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often use the level-ttl module, which I must attach only once in the 'master' process. What is the right approach? I think this use case is not handled at the moment.
I can't just add a 'promoted' event, as I need to intercept the creation of the new database. So, if it's ok for you I'll add a wrapMaster option with a function to install the master-only modules. So we can replace this line https://github.com/substack/level-party/blob/master/index.js#L54
with:
I often use the level-ttl module, which I must attach only once in the 'master' process. What is the right approach? I think this use case is not handled at the moment.
I can't just add a
'promoted'
event, as I need to intercept the creation of the new database. So, if it's ok for you I'll add awrapMaster
option with a function to install the master-only modules. So we can replace this linehttps://github.com/substack/level-party/blob/master/index.js#L54
with:
Shall I submit a PR?
The text was updated successfully, but these errors were encountered: