protonmsg: drop bad key reference

This is a relic of an earlier version of the db work.
At this point in the code, there is never an id field.
We don't re-store messages from the db. We only delete them
after confirmed send.
This commit is contained in:
Mike McLean 2021-05-01 15:02:33 -04:00 committed by Tomas Kopecek
parent 158232ab81
commit bd00cddc2b

View file

@ -327,9 +327,6 @@ def store_to_db(msgs):
props = json.dumps(msg['props'])
insert = InsertProcessor(table='proton_queue')
insert.set(address=address, props=props, body=body)
if 'id' in msg:
# if we've something from db, we should store it in correct order
insert.set(id=msg['db_id'])
insert.execute()
c.execute('COMMIT')