diff --git a/README.rst b/README.rst index af9bd4f..f2fac3b 100644 --- a/README.rst +++ b/README.rst @@ -23,10 +23,10 @@ A queue can be instantiated with a mongo collection and a consumer identifier. The consumer identifier helps distinguish multiple queue consumers that are taking jobs from the queue:: - >> from pymongo import Connection + >> from pymongo import MongoClient >> from mongoqueue import MongoQueue >> queue = MongoQueue( - ... Connection(TEST_DB).doctest_queue, + ... MongoClient().test_db.doctest_queue, ... consumer_id="consumer-1", ... timeout=300, ... max_attempts=3)