Apply suggestions from Rich's code review
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
-- after there has been a connectivity problem for any reason.
|
||||
|
||||
-- This stores, for each (destination, room) pair, the event_id and stream_ordering
|
||||
-- of the latest event to be enqueued for transmission to that destination.
|
||||
-- of the latest event for that destination.
|
||||
CREATE TABLE IF NOT EXISTS destination_rooms (
|
||||
-- the destination in question
|
||||
destination TEXT NOT NULL,
|
||||
|
||||
@@ -159,7 +159,7 @@ class TransactionStore(SQLBaseStore):
|
||||
allow_none=True,
|
||||
)
|
||||
|
||||
if result and result["retry_last_ts"] and result["retry_last_ts"] > 0:
|
||||
if result and result["retry_last_ts"]:
|
||||
return result
|
||||
else:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user