aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres/requeue.go
diff options
context:
space:
mode:
authorJulie Qiu <julie@golang.org>2020-07-15 22:27:50 -0400
committerJulie Qiu <julie@golang.org>2020-07-16 14:19:09 +0000
commitbf169b2ac368e7697d60c500e4d91cd51aff9785 (patch)
tree767f9dd1cd27cf12456717aba659b8ba7561f4aa /internal/postgres/requeue.go
parent606e69c6edd93487c16c4228812263e9d7d3cedc (diff)
downloadgo-x-pkgsite-bf169b2ac368e7697d60c500e4d91cd51aff9785.tar.xz
internal/derrors: rename ToHTTPStatus to ToStatus
ToHTTPStatus is renamed to ToStatus, since several derrors codes are not HTTP status codes. Change-Id: I41bf1452fdbbafe1a4f752bc3092e39515a2db4b Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/242882 Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'internal/postgres/requeue.go')
-rw-r--r--internal/postgres/requeue.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/postgres/requeue.go b/internal/postgres/requeue.go
index 14cabb70..d2a0761b 100644
--- a/internal/postgres/requeue.go
+++ b/internal/postgres/requeue.go
@@ -23,9 +23,9 @@ func (db *DB) UpdateModuleVersionStatesForReprocessing(ctx context.Context, appV
for _, status := range []int{
http.StatusOK,
- derrors.ToHTTPStatus(derrors.HasIncompletePackages),
- derrors.ToHTTPStatus(derrors.BadModule),
- derrors.ToHTTPStatus(derrors.AlternativeModule),
+ derrors.ToStatus(derrors.HasIncompletePackages),
+ derrors.ToStatus(derrors.BadModule),
+ derrors.ToStatus(derrors.AlternativeModule),
} {
query := `UPDATE module_version_states
SET