Bump Go version in toolchain directive to 1.24.8 (#21629)

This commit is contained in:
Mark Theunissen
2025-10-10 20:57:03 +02:00
committed by GitHub
parent d51a4a4ff6
commit ba3c0fd1c7
12 changed files with 35 additions and 29 deletions

View File

@@ -228,7 +228,7 @@ func (h *metricsV3Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// it's the last part of the path. e.g. /bucket/api/<bucket-name>
bucketIdx := strings.LastIndex(pathComponents, "/")
buckets = append(buckets, pathComponents[bucketIdx+1:])
// remove bucket from pathComponents as it is dyanamic and
// remove bucket from pathComponents as it is dynamic and
// hence not included in the collector path.
pathComponents = pathComponents[:bucketIdx]
}