watchmen icon indicating copy to clipboard operation
watchmen copied to clipboard

Async Storage Provider Creation

Open GlennGeenen opened this issue 9 years ago • 1 comments

I started creating a mongodb storage provider. The problem I'm having is that I can't do a clean setup since the creation of the storage happens sync for redis. For mongo I have to create a connection async, I can catch this later on but that means a lot of 'hacky' code to handle the async setup.

So what do you think, changing getStorageInstance to an async method?

GlennGeenen avatar Mar 16 '16 21:03 GlennGeenen

If you are keen to include the mongodb storage provider I will be happy to accept a PR for asynchronous getStorageInstance :)

iloire avatar May 18 '16 12:05 iloire