diff --git a/asyncio_mongo/protocol.py b/asyncio_mongo/protocol.py index cca62c8..63793d1 100644 --- a/asyncio_mongo/protocol.py +++ b/asyncio_mongo/protocol.py @@ -32,10 +32,11 @@ _QUERY_OPTIONS = { class _MongoQuery(object): - def __init__(self, id, collection, limit): + def __init__(self, id, collection, limit, tailable=False): self.id = id self.limit = limit self.collection = collection + self.tailable = tailable self.documents = [] self.future = asyncio.Future() @@ -180,7 +181,7 @@ class MongoProtocol(asyncio.Protocol): query_opts |= _QUERY_OPTIONS["await_data"] query_opts = struct.pack("