Eventing TLS: Add scheme label to metrics #5723
Annotations
2 errors and 1 warning
Verify goimports:
pkg/broker/ingress/ingress_handler.go#L1
Please run goimports.
diff --git a/pkg/broker/ingress/ingress_handler.go b/pkg/broker/ingress/ingress_handler.go
index 9984713..577c308 100644
--- a/pkg/broker/ingress/ingress_handler.go
+++ b/pkg/broker/ingress/ingress_handler.go
@@ -257,16 +257,16 @@ func (h *Handler) ServeHTTP(writer http.ResponseWriter, request *http.Request) {
}
reporterArgs := &ReportArgs{
- ns: brokerNamespace,
- broker: brokerName,
- eventType: event.Type(),
+ ns: brokerNamespace,
+ broker: brokerName,
+ eventType: event.Type(),
}
- if request.TLS != nil {
- reporterArgs.eventScheme = "https"
- } else {
- reporterArgs.eventScheme = "http"
- }
+ if request.TLS != nil {
+ reporterArgs.eventScheme = "https"
+ } else {
+ reporterArgs.eventScheme = "http"
+ }
statusCode, dispatchTime := h.receive(ctx, utils.PassThroughHeaders(request.Header), event, broker)
if dispatchTime > kncloudevents.NoDuration {
|
Verify goimports
Process completed with exit code 1.
|
Set up Go
Restore cache failed: Dependencies file is not found in /home/runner/work/eventing/eventing. Supported file pattern: go.sum
|
The logs for this run have expired and are no longer available.
Loading