Skip to content

Conversation

@wedgwood
Copy link
Contributor

@wedgwood wedgwood commented Nov 6, 2017

As titled, I send this PR to make it support using multiple connections at same time.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@allevo allevo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The simplest way to implement this is to allow to choose "mongo" key in configuration.

Like

fastify
    .decorate(options.name || 'mongo', mongo)
    .addHook('onClose', close)

@wedgwood
Copy link
Contributor Author

wedgwood commented Nov 6, 2017

@allevo I am just keep same as fastify/fastify-postgres#11.

Copy link
Member

@delvedor delvedor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@delvedor delvedor merged commit d78279b into fastify:master Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants