Add timeout for db writes to avoid sqlite database locked error

This commit is contained in:
Reckless_Satoshi 2022-01-31 11:12:49 -08:00
parent d763da8493
commit 18d5cac16a
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 10 additions and 0 deletions

View File

@ -15,6 +15,13 @@ HOST_NAME = ''
# e.g. robotestagw3dcxmd66r4rgksb4nmmr43fh77bzn2ia2eucduyeafnyd.onion
ONION_LOCATION = ''
# Link to robosats mainnet/testnet (shown on frontend in statsfornerds so users can switch mainnet/testnet)
THE_OTHER_ROBOSATS = 'robosats-testnet/mainnet.onion'
# Lightning node open info, url to amboss and 1ML
AMBOSS = ''
ONEML = ''
# Trade fee in percentage %
FEE = 0.002
# Bond size in percentage %

View File

@ -86,6 +86,9 @@ DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
'OPTIONS': {
'timeout': 20, # in seconds
}
}
}