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

payment timeout for playtesting
main
parent 2fc9527a17
commit 038d8f1b2b

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

@ -32,6 +32,7 @@ const (
const ( const (
// A-Z and 0-9, four digits means this many codes // A-Z and 0-9, four digits means this many codes
MaxCodes = 36 * 36 * 36 * 36 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() ipAddyTenFree[userKey] = currentTime()
rejected = false rejected = false
} else { } else {
if currentTime() - createdTime < 10*60 { if currentTime() - createdTime < MaxTime {
rejected = false rejected = false
} else { } else {
rejected = true // out of free time buddy rejected = true // out of free time buddy

Loading…
Cancel
Save