Skip to content

Commit

Permalink
Remove extra (for now) return.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertodauria committed Jun 1, 2023
1 parent faf3de8 commit 988e5b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var (
Name: "connection_errors_total",
Help: "Counter of connection errors.",
},
[]string{"direction", "status"},
[]string{"direction", "error"},
)
fileWrites = promauto.NewCounterVec(
prometheus.CounterOpts{
Expand Down Expand Up @@ -258,8 +258,6 @@ func (h *Handler) upgradeAndRunMeasurement(kind model.TestDirection, rw http.Res
log.Info("Connection closed unexpectedly", "context",
fmt.Sprintf("%p", timeout), "error", err)
// TODO: Add Prometheus metric

return
}
return
}
Expand Down

0 comments on commit 988e5b9

Please sign in to comment.