Skip to content

Commit 368f6ff

Browse files
makasimbwplotka
andcommitted
Update exp/api/remote/remote_api.go
Co-authored-by: Bartlomiej Plotka <[email protected]> Signed-off-by: Max Kotliar <[email protected]>
1 parent 46bef76 commit 368f6ff

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

exp/api/remote/remote_api.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,6 @@ func WithWriteHandlerMiddlewares(middlewares ...func(http.Handler) http.Handler)
452452
// This protects against maliciously crafted payloads that could cause excessive memory
453453
// allocation and potentially lead to out-of-memory (OOM) conditions.
454454
// All usual payloads should be much smaller than this limit and pass without any problems.
455-
//
456-
// See more in https://github.com/prometheus/client_golang/pull/1917
457455
const maxDecodedSize = 32 * 1024 * 1024
458456

459457
// SnappyDecodeMiddleware returns a middleware that checks if the request body is snappy-encoded and decompresses it.

0 commit comments

Comments
 (0)