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:
parent
158232ab81
commit
bd00cddc2b
1 changed files with 0 additions and 3 deletions
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue