Skip to content

blob/accept: give it a blob-size type whose range End cannot be nil #12

@frrist

Description

@frrist

In the accept handler we build an assert.Range{Start:0, End:&(size-1)} from a pointer-to-uint64. accept should own a blob-size type whose range End cannot be nil, rather than threading a nilable pointer.

Code: https://github.com/fil-forge/piri/blob/frrist/ucan1/pkg/ucanhandlers/blob/accept.go#L186

Raised in PR #8 review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions