Skip to content

Commit

Permalink
add timeout to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptosharks131 committed Feb 2, 2023
1 parent 3cb61b3 commit 8f5c465
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ def write_settings(node_ip, lnd_tls_path, lnd_macaroon_path, lnd_database_path,
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'data/db.sqlite3',
'OPTIONS': {
'timeout': 20,
},
}
}
Expand Down
2 changes: 1 addition & 1 deletion rebalancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def save_record(record):
try:
record.save()
except Exception as e:
print(datetime.now(), 'Error saving databse record:', str(e))
print(datetime.now(), 'Error saving database record:', str(e))

@sync_to_async
def inbound_cans_len(inbound_cans):
Expand Down

0 comments on commit 8f5c465

Please sign in to comment.