Skip to content

Commit

Permalink
Add a send_event call to glitch_grid
Browse files Browse the repository at this point in the history
  • Loading branch information
youhanaNaseim authored May 16, 2024
1 parent 598c625 commit 3ea3120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func NewControlServer(vaults string) *ControlServer {
// Handle GET and POST requests to the root path.
func (s *ControlServer) handle(w http.ResponseWriter, r *http.Request) {

lifecycle.SendEvent("Handle called.", Details{"method": r.Method})
lifecycle.SendEvent("handle_event", Details{"message":"Handle is called.", "method": r.Method})

if r.URL.Path != "/" {
assert.AlwaysOrUnreachable(true, "Control service: received a non-root request paths & handled that correctly.", Details{"path": r.URL.Path})
Expand Down

0 comments on commit 3ea3120

Please sign in to comment.