fixed CQ for src.class_singleWorker module
This commit is contained in:
parent
30044f7516
commit
a7c1018f47
|
@ -557,10 +557,10 @@ class singleWorker(StoppableThread):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if not sqlExecute(
|
if not sqlExecute(
|
||||||
'''UPDATE sent SET status='doingbroadcastpow' '''
|
'''UPDATE sent SET status='doingbroadcastpow' '''
|
||||||
''' WHERE ackdata=? AND status='broadcastqueued' '''
|
''' WHERE ackdata=? AND status='broadcastqueued' '''
|
||||||
''' AND folder='sent' ''',
|
''' AND folder='sent' ''',
|
||||||
ackdata):
|
ackdata):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# At this time these pubkeys are 65 bytes long
|
# At this time these pubkeys are 65 bytes long
|
||||||
|
@ -1298,7 +1298,7 @@ class singleWorker(StoppableThread):
|
||||||
newStatus = 'msgsent'
|
newStatus = 'msgsent'
|
||||||
# wait 10% past expiration
|
# wait 10% past expiration
|
||||||
sleepTill = int(time.time() + TTL * 1.1)
|
sleepTill = int(time.time() + TTL * 1.1)
|
||||||
au = sqlExecute(
|
sqlExecute(
|
||||||
'''UPDATE sent SET msgid=?, status=?, retrynumber=?, '''
|
'''UPDATE sent SET msgid=?, status=?, retrynumber=?, '''
|
||||||
''' sleeptill=?, lastactiontime=? WHERE ackdata=? AND folder='sent' ''',
|
''' sleeptill=?, lastactiontime=? WHERE ackdata=? AND folder='sent' ''',
|
||||||
inventoryHash, newStatus, retryNumber + 1,
|
inventoryHash, newStatus, retryNumber + 1,
|
||||||
|
|
Reference in New Issue
Block a user