From 8a615580357e71c5ed85a5ebe666428e024fa470 Mon Sep 17 00:00:00 2001 From: ShiKhu Date: Tue, 7 Sep 2021 19:12:15 +0200 Subject: [PATCH] feat(backend): send beaconSizeLimit to Tracker on start --- backend/services/http/handlers.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/backend/services/http/handlers.go b/backend/services/http/handlers.go index e22a97abe..975abe31b 100644 --- a/backend/services/http/handlers.go +++ b/backend/services/http/handlers.go @@ -34,11 +34,12 @@ func startSessionHandlerWeb(w http.ResponseWriter, r *http.Request) { Reset bool `json:"reset"` } type response struct { - Timestamp int64 `json:"timestamp"` - Delay int64 `json:"delay"` - Token string `json:"token"` - UserUUID string `json:"userUUID"` - SessionID string `json:"sessionID"` + Timestamp int64 `json:"timestamp"` + Delay int64 `json:"delay"` + Token string `json:"token"` + UserUUID string `json:"userUUID"` + SessionID string `json:"sessionID"` + BeaconSizeLimit int64 `json:"beaconSizeLimit"` } startTime := time.Now() @@ -115,6 +116,7 @@ func startSessionHandlerWeb(w http.ResponseWriter, r *http.Request) { Token: tokenizer.Compose(*tokenData), UserUUID: userUUID, SessionID: strconv.FormatUint(tokenData.ID, 10), + BeaconSizeLimit: BEACON_SIZE_LIMIT, }) }