commit | 6e28a50e59803c0b1f05ca9e18a38d33b9e2868b | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Tue Aug 31 08:20:54 2021 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Wed Sep 01 14:15:59 2021 +0000 |
tree | 02e09790528b5da3c209f44b88a9d7a9be768aeb | |
parent | 930acfc7b9f3191f8a9ad2aeab90ad434ce6ab8c [diff] |
internal/proxy: cache info and mod endpoints Add more caching to the proxy client so we can call Info and Mod multiple times during a fetch without worrying about wasted RPCs to the proxy. This will enable moving the load shedder, which requires its own info call, out of the fetch logic and into the worker. For golang/go#48010 Change-Id: I4e875b1fd5b968aae174cfb93f4cf3a9a2b7a577 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/346729 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
Pkg.go.dev is a website for discovering and evaluating Go packages and modules.
You can check it out at https://pkg.go.dev.
If you want to report a bug or have a feature suggestion, please first check the known issues to see if your issue is already being discussed. If an issue does not already exist, feel free to file an issue.
For answers to frequently asked questions, see go.dev/about.
You can also chat with us on the #pkgsite Slack channel on the Gophers Slack.
We would love your help!
Our canonical Git repository is located at go.googlesource.com/pkgsite. There is a mirror of the repository at github.com/golang/pkgsite.
To contribute, please read our contributing guide.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.