Skip to content

Commit

Permalink
refactor: remove blob size check (#3934)
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp authored Nov 13, 2024
1 parent 353141f commit fa01196
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions blob/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ func NewBlobV1(namespace libshare.Namespace, data, signer []byte) (*Blob, error)

// NewBlob constructs a new blob from the provided Namespace, data, signer, and share version.
func NewBlob(shareVersion uint8, namespace libshare.Namespace, data, signer []byte) (*Blob, error) {
if len(data) == 0 || len(data) > appconsts.DefaultMaxBytes {
return nil, fmt.Errorf("blob data must be > 0 && <= %d, but it was %d bytes", appconsts.DefaultMaxBytes, len(data))
}

if err := namespace.ValidateForBlob(); err != nil {
return nil, fmt.Errorf("invalid user namespace: %w", err)
}
Expand Down

0 comments on commit fa01196

Please sign in to comment.