toystars / node-elasticsearch-sync

ElasticSearch and MongoDB sync module for node
MIT License
17 stars 11 forks source link

ESMongoSync: Incorrect argument count in init function #10

Closed ghost closed 8 years ago

ghost commented 8 years ago

I am calling the function as :

ESMongoSync.init(null, null, null, watchers, 500);

Please assist if its wrong.

toystars commented 8 years ago

In the new release, you only call the init function with two arguments like so: ESMongoSync.init(watchers, null), then you define the following environment variables: MONGO_OPLOG_URL, MONGO_DATA_URL, ELASTIC_SEARCH_URL, BATCH_COUNT. That should get you going...

ghost commented 8 years ago

Works fine. Thank you

nuest commented 7 years ago

Could you update the examples in the README, please?

nuest commented 7 years ago

My apologies, I just oversaw the "example for version prior to 1.0.0" in the headline.