Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions memphis/memphis.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ async def error_cb(e):
ping_connection_opts["allow_reconnect"] = False
ping_connection_opts["error_cb"] = ping_error_cb

# Newer versions of Memphis take a user of the form
# "{username}${account_id}". For older versions, the user was
# simply the username. The user is created using the new style
# in Memphis.connect(). If connecting with the new-style user
# fails, try the old style.
try:
conn = await broker.connect(**ping_connection_opts)
await conn.close()
Expand Down