HACK disable optims on release web because of release only bug, maximize

payment timeout for playtesting
main
Cameron Murphy Reikes 2 years ago
parent 2fc9527a17
commit 038d8f1b2b

@ -5,7 +5,7 @@ mkdir build_web_release
call run_codegen.bat || goto :error
set FLAGS=-O2 -DNDEBUG
set FLAGS=-O0 -DNDEBUG
set OUTPUT_FOLDER=build_web_release
call build_web_common.bat || goto :error

@ -32,6 +32,7 @@ const (
const (
// A-Z and 0-9, four digits means this many codes
MaxCodes = 36 * 36 * 36 * 36
MaxTime = 10*60 *1000 // in seconds
)
@ -283,7 +284,7 @@ func completion(w http.ResponseWriter, req *http.Request) {
ipAddyTenFree[userKey] = currentTime()
rejected = false
} else {
if currentTime() - createdTime < 10*60 {
if currentTime() - createdTime < MaxTime {
rejected = false
} else {
rejected = true // out of free time buddy

Loading…
Cancel
Save