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
Right. The text is from when Db#open was called immediately in the constructor; I removed that in favor of doing lazy open. Database is going to be opened when set, get, destroy, length or clear is called. I'll update the README.
fwiw I forked it to do the open in the constructor again. Needed to get a callback when it was properly connected to my repl set before proceeding with the rest of the express configuration, the lazy loading was causing this error on the first request of my app after server restart: Error setting TTL index on collection : <Error: Error setting TTL index on collection : <Error: No replica set primary available for query with ReadPreference PRIMARY>> type errors when the web app launched before it was fully connected.
If I use MongoStore(opts,cb) the cb is never called. Doesn't look like there is code to trigger the callback.
The text was updated successfully, but these errors were encountered: