Skip to content

Commit

Permalink
fix: gsoc address path parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
nugaon committed Jul 17, 2024
1 parent e70dbb4 commit 7877d45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/gsoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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) {
Expand Down

0 comments on commit 7877d45

Please sign in to comment.