Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Goblin OGM
AIO Gremlin
Commits
d2e825d8
Commit
d2e825d8
authored
May 23, 2015
by
davebshow
Browse files
more params fixes
parent
a29147b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
aiogremlin/client.py
View file @
d2e825d8
...
...
@@ -70,15 +70,16 @@ class GremlinClient:
self
.
timeout
=
timeout
self
.
_pool
=
pool
self
.
_connector
=
connector
self
.
_factory
=
factory
or
GremlinFactory
(
connector
=
self
.
_connector
)
self
.
_conn
=
connection
if
pool
is
not
None
:
factory
=
pool
.
_factory
self
.
_connected
=
self
.
_pool
.
_connected
elif
self
.
_conn
and
not
getattr
(
connection
,
"closed"
,
True
):
self
.
_connected
=
True
else
:
self
.
_connected
=
False
self
.
_conn
=
asyncio
.
async
(
self
.
_connect
(),
loop
=
self
.
_loop
)
self
.
_factory
=
factory
or
GremlinFactory
(
connector
=
self
.
_connector
)
if
verbose
:
logger
.
setLevel
(
INFO
)
...
...
aiogremlin/pool.py
View file @
d2e825d8
...
...
@@ -16,11 +16,11 @@ class WebSocketPool:
"""
"""
self
.
url
=
url
self
.
_
ws_response_class
=
(
ws_response_class
or
GremlinClientWebSocketResponse
)
if
ws_response_class
is
None
:
ws_response_class
=
GremlinClientWebSocketResponse
self
.
_factory
=
factory
or
GremlinFactory
(
connector
=
connector
,
ws_response_class
=
self
.
_
ws_response_class
)
ws_response_class
=
ws_response_class
)
self
.
poolsize
=
poolsize
self
.
max_retries
=
max_retries
self
.
timeout
=
timeout
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment