Skip to content

Commit edfe50c

Browse files
committed
Review feedback
1 parent 8916f52 commit edfe50c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ring/http.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const tpl = `
1616
</head>
1717
<body>
1818
<h1>Cortex Ring Status</h1>
19+
<p>Current time: {{ .Now }}</p>
1920
<p>{{ .Message }}</p>
2021
<form action="" method="POST">
2122
<table width="100%" border="1">
@@ -89,9 +90,11 @@ func (r *Ring) ServeHTTP(w http.ResponseWriter, req *http.Request) {
8990
if err := tmpl.Execute(w, struct {
9091
Ring Desc
9192
Message string
93+
Now time.Time
9294
}{
9395
Ring: r.ringDesc,
9496
Message: message,
97+
Now: time.Now(),
9598
}); err != nil {
9699
http.Error(w, err.Error(), http.StatusInternalServerError)
97100
return

0 commit comments

Comments
 (0)