commit | 249682f624601a32de99187f37a7a4d87da4a8e4 | [log] [tgz] |
---|---|---|
author | Jonathan Ballet <jon@multani.info> | Wed Jun 05 06:49:37 2024 |
committer | Jonathan Ballet <jon@multani.info> | Thu Jun 27 10:39:44 2024 |
tree | ec4658c14527bf1af4f4d18dd5c134b3f592ed05 | |
parent | 0c7b585c7da330aae136aaa874cb4f89f5b3e5d9 [diff] |
Don't always fetch a OAuth2 token, if the secret from a file didn't change When configuring a OAuth2 client using the `client_secret_file` configuration option, the original intent of the code was to *not* forcefully refetch a token if the content of the file didn't change. However, both the test and the implementation had 2 typos and a new token token was fetched on every request through the HTTP client. Signed-off-by: Jonathan Ballet <jon@multani.info>
This repository contains Go libraries that are shared across Prometheus components and libraries. They are considered internal to Prometheus, without any stability guarantees for external usage.
context.Context