Assign db timeout handler

Allow 50ms for a db transaction if a busy state is encountered
master
shivajiva101 2020-09-13 22:14:39 +01:00 committed by GitHub
parent 439bca09cb
commit 30c882337b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@ sban = {}
### Settings ###
################
]]
-- db
db:busy_timeout(50)
-- minetest.conf
if minetest.settings then
expiry = minetest.settings:get("sban.ban_max")