From 7877d45adb93e4d5212b7ef73bddc2f4a21d44ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Levente=20T=C3=B3th?= Date: Wed, 17 Jul 2024 22:18:06 +0200 Subject: [PATCH] fix: gsoc address path parsing --- pkg/api/gsoc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/gsoc.go b/pkg/api/gsoc.go index bf6c57abee6..0285e80597b 100644 --- a/pkg/api/gsoc.go +++ b/pkg/api/gsoc.go @@ -18,7 +18,7 @@ func (s *Service) gsocWsHandler(w http.ResponseWriter, r *http.Request) { logger := s.logger.WithName("gsoc_subscribe").Build() paths := struct { - address []byte `map:"address" validate:"required"` + Address []byte `map:"address" validate:"required"` }{} if response := s.mapStructure(mux.Vars(r), &paths); response != nil { response("invalid path params", logger, w) @@ -40,7 +40,7 @@ func (s *Service) gsocWsHandler(w http.ResponseWriter, r *http.Request) { } s.wsWg.Add(1) - go s.gsocListeningWs(conn, paths.address) + go s.gsocListeningWs(conn, paths.Address) } func (s *Service) gsocListeningWs(conn *websocket.Conn, socAddress []byte) {