aboutsummaryrefslogtreecommitdiff
path: root/cmd/pkgsite
diff options
context:
space:
mode:
authorJonathan Amsterdam <jba@google.com>2021-09-01 09:35:08 -0400
committerJonathan Amsterdam <jba@google.com>2021-09-01 14:51:36 +0000
commit50230098f516d890a73259d7bf6240fa695fd373 (patch)
treec9bea1e02b4a28e51d296bc70e7f145cc7bfd0f1 /cmd/pkgsite
parent2c043863fa307c4c882a7242fe98bebe0a1b69ff (diff)
downloadgo-x-pkgsite-50230098f516d890a73259d7bf6240fa695fd373.tar.xz
cmd/pkgsite: remove dcensus
Since the fetch code no longer records metrics, the pkgsite command doesn't need to talk to OpenCensus. For golang/go#48010 Change-Id: I2793046725cd8c66ddfb585370ba2bf4890a9366 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/346810 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
Diffstat (limited to 'cmd/pkgsite')
-rw-r--r--cmd/pkgsite/main.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/pkgsite/main.go b/cmd/pkgsite/main.go
index 0a6d2ba2..3aa7d41d 100644
--- a/cmd/pkgsite/main.go
+++ b/cmd/pkgsite/main.go
@@ -39,7 +39,6 @@ import (
"github.com/google/safehtml/template"
"golang.org/x/pkgsite/internal"
- "golang.org/x/pkgsite/internal/dcensus"
"golang.org/x/pkgsite/internal/fetch"
"golang.org/x/pkgsite/internal/fetchdatasource"
"golang.org/x/pkgsite/internal/frontend"
@@ -112,7 +111,7 @@ func main() {
if err != nil {
die("%s\nMaybe you need to provide the location of static assets with -static.", err)
}
- router := dcensus.NewRouter(frontend.TagRoute)
+ router := http.NewServeMux()
server.Install(router.Handle, nil, nil)
mw := middleware.Timeout(54 * time.Second)
log.Infof(ctx, "Listening on addr %s", *httpAddr)