Rename peer S3 prefix to avoid collision in the future (#16473)

This commit is contained in:
Anis Elleuch
2023-01-25 15:46:30 +01:00
committed by GitHub
parent 1bf1fafc86
commit 441babdc41
3 changed files with 8 additions and 1 deletions

View File

@@ -306,6 +306,7 @@ func setHTTPStatsHandler(h http.Handler) http.Handler {
if strings.HasPrefix(r.URL.Path, storageRESTPrefix) ||
strings.HasPrefix(r.URL.Path, peerRESTPrefix) ||
strings.HasPrefix(r.URL.Path, peerS3Prefix) ||
strings.HasPrefix(r.URL.Path, lockRESTPrefix) {
globalConnStats.incInputBytes(meteredRequest.BytesRead())
globalConnStats.incOutputBytes(meteredResponse.BytesWritten())