Skip to content

Commit

Permalink
feat: set limit to 4k
Browse files Browse the repository at this point in the history
  • Loading branch information
ppzqh committed Aug 27, 2024
1 parent 03eb786 commit d3caf15
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/remote/codec/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (

const (
PayloadValidatorPrefix = "PV_"
maxPayloadChecksumLength = 1024
maxPayloadChecksumLength = 4096 // maximum 4k
)

// PayloadValidator is the interface for validating the payload of RPC requests, which allows customized Checksum function.
Expand Down
1 change: 0 additions & 1 deletion pkg/remote/codec/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ func TestCRCPayloadValidator(t *testing.T) {
pass, err = p.Validate(ctx, "", payload)
test.Assert(t, err == nil, err)
test.Assert(t, pass == true)

}

func preparePayload() []byte {
Expand Down

0 comments on commit d3caf15

Please sign in to comment.