Commit 10e88d84 authored by davebshow's avatar davebshow
Browse files

little fixes in readmes

parent 84a692d7
......@@ -31,7 +31,10 @@ The Gremlin Server responds with messages in chunks, `GremlinClient.submit` subm
>>> loop = asyncio.get_event_loop()
>>> gc = GremlinClient('ws://localhost:8182/', loop=loop)
# Or even better, use the constructor function. This will init pool connections.
>>> gc = create_client('ws://localhost:8182/', loop=loop)
# ***Must be done inside a coroutine***
>>> gc = yield from create_client('ws://localhost:8182/', loop=loop)
# Or outside of a coroutine using the loop to help
>>> gc = loop.run_until_complete(create_client(loop=loop))
# Use get.
>>> @asyncio.coroutine
......
====================================================
=========================================================
aiogremlin - Async Python 3 driver for TP3 Gremlin Server
====================================================
=========================================================
**alpha**
......@@ -8,4 +8,4 @@ aiogremlin - Async Python 3 driver for TP3 Gremlin Server
`Official Documentation`_
.. _Official Documentation:
.. _Official Documentation: https://github.com/davebshow/aiogremlin
......@@ -3,8 +3,6 @@ https://github.com/KeepSafe/aiohttp/blob/master/benchmark/async.py
"""
import argparse
import asyncio
import collections
import random
import aiogremlin
......@@ -20,9 +18,9 @@ def run(client, count, concurrency, loop):
for x in range(count):
try:
t1 = loop.time()
resp = yield from execute("1 + 1")
resp = yield from execute("%d" % x)
assert resp[0].status_code == 200, resp[0].status_code
assert resp[0].data[0] == 2, resp[0].data[0]
assert resp[0].data[0] == x, resp[0].data[0]
t2 = loop.time()
processed_count += 1
except Exception:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment