From 51963abce763c52114b209000f1aeb44b5f843f3 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Tue, 1 Nov 2022 15:53:57 +0300 Subject: [PATCH] [#1972] node: Fix errors comments in the Put service Signed-off-by: Pavel Karpy --- pkg/services/object/put/validation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/services/object/put/validation.go b/pkg/services/object/put/validation.go index a3b62928..20f227b2 100644 --- a/pkg/services/object/put/validation.go +++ b/pkg/services/object/put/validation.go @@ -34,9 +34,9 @@ type validatingTarget struct { } var ( - // ErrExceedingMaxSize is returned when chunk payload size is greater than the length declared in header. + // ErrExceedingMaxSize is returned when payload size is greater than the limit. ErrExceedingMaxSize = errors.New("payload size is greater than the limit") - // ErrWrongPayloadSize is returned when payload size is greater than the limit. + // ErrWrongPayloadSize is returned when chunk payload size is greater than the length declared in header. ErrWrongPayloadSize = errors.New("wrong payload size") )