From 6c025f5d3dfd82e9b1f8af455217f96789f12864 Mon Sep 17 00:00:00 2001 From: Aman Agnihotri Date: Tue, 16 Apr 2024 02:53:53 +0530 Subject: [PATCH] Set max duration per move to 60 seconds 120 was used for testing. 120 seconds is also the keep alive time duration when disconnection is detected so it's best to not keep both values the same. --- internal/game/play/create/api/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/game/play/create/api/handler.go b/internal/game/play/create/api/handler.go index ec8fcf4..8125a13 100644 --- a/internal/game/play/create/api/handler.go +++ b/internal/game/play/create/api/handler.go @@ -11,7 +11,7 @@ import ( const ( bufferSize = 2 - maxDurationPerMove = 120 * time.Second + maxDurationPerMove = 60 * time.Second ) type Handler interface {