Skip to content

Commit 5cdd3bc

Browse files
committed
close out idle in transaction db calls between sleep cycles
1 parent bd5872b commit 5cdd3bc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cacheBalances.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def updateBalancesCache():
2222

2323
except Exception as e:
2424
printmsg("error updating balances: "+str(space)+' '+str(e))
25+
dbCommit()
2526
time.sleep(30)
2627

2728

cacheOrderBook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def updateOrderbookCache():
2727
rSet("omniwallet:omnidex:book",json.dumps(ret['book']))
2828
except Exception as e:
2929
printmsg("Error updating orderbook cache "+str(e))
30-
30+
dbCommit()
3131

3232
def main():
3333
updateOrderbookCache()

0 commit comments

Comments
 (0)