Skip to content

Commit

Permalink
Make core.connect async-safe (Fixes #15)
Browse files Browse the repository at this point in the history
Only a single MongoDB connection will be opened regardless of how many
times connect is called, and regardless of the delay between calling
connect and it actually resolving.
  • Loading branch information
notheotherben committed Aug 24, 2015
1 parent 0697117 commit f7f9db1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
8 changes: 7 additions & 1 deletion dist/lib/Core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f7f9db1

Please sign in to comment.