[#1972] node: Fix errors comments in the Put service

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
remotes/carpawell/fix/morph-cli
Pavel Karpy 2022-11-01 15:53:57 +03:00 committed by fyrchik
parent 7335a52f29
commit 51963abce7
1 changed files with 2 additions and 2 deletions

View File

@ -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")
)