repo-updater: Fix state page (#17272)

A previous commit, a56ad2f9, removed the URL field from our
configuredRepo type but we were still trying to render it.
This commit is contained in:
Ryan Slade 2021-01-14 15:25:44 +02:00 committed by GitHub
parent 0736aa1975
commit f449be875f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -45,10 +45,7 @@
<tr>
<td>{{.Repo.ID}}</td>
<td>
<a href="{{.Repo.URL}}"
data-toggle="tooltip" data-placement="bottom" title="{{.Repo.URL}}">
{{.Repo.Name}}
</a>
{{.Repo.Name}}
</td>
<td>{{truncateDuration .Interval}}</td>
<td>{{.Due.Format "Mon, 02 Jan 2006 15:04:05 MST"}}</td>

View File

@ -386,7 +386,7 @@ func (s *updateScheduler) DebugDump() interface{} {
}
for i, update := range s.updateQueue.heap {
// Copy the repoUpdate as a value so that
// poping off the heap here won't update the index value of the real heap, and
// popping off the heap here won't update the index value of the real heap, and
// we don't do a racy read on the repo pointer which may change concurrently in the real heap.
updateCopy := *update
updateQueue.heap[i] = &updateCopy