Skip to content

Commit

Permalink
fix: missing region (#1027)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkaske authored Oct 3, 2024
1 parent ff99d32 commit ebbc092
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/checker/handlers/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ func (h Handler) PingRegionHandler(c *gin.Context) {
}

res = r
res.Region = h.Region

if tbData.RequestId != 0 {
if err := h.TbClient.SendEvent(ctx, tbData, dataSourceName); err != nil {
Expand Down
1 change: 1 addition & 0 deletions apps/checker/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type Response struct {
Headers map[string]string `json:"headers,omitempty"`
Body string `json:"body,omitempty"`
Error string `json:"error,omitempty"`
Region string `json:"region"`
Latency int64 `json:"latency"`
Timestamp int64 `json:"timestamp"`
Status int `json:"status,omitempty"`
Expand Down

0 comments on commit ebbc092

Please sign in to comment.