Skip to content

Commit

Permalink
Merge pull request #106 from ucan-wg/cont-type
Browse files Browse the repository at this point in the history
container: use the correct type in GetAllDelegations
  • Loading branch information
MichaelMure authored Feb 3, 2025
2 parents 1b28cb4 + fe14765 commit 879c0ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/container/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ func (ctn Reader) GetDelegation(cid cid.Cid) (*delegation.Token, error) {
}

// GetAllDelegations returns all the delegation.Token in the container.
func (ctn Reader) GetAllDelegations() iter.Seq[token.Bundle] {
return func(yield func(token.Bundle) bool) {
func (ctn Reader) GetAllDelegations() iter.Seq[delegation.Bundle] {
return func(yield func(delegation.Bundle) bool) {
for c, bndl := range ctn {
if t, ok := bndl.token.(*delegation.Token); ok {
if !yield(token.Bundle{
if !yield(delegation.Bundle{
Cid: c,
Decoded: t,
Sealed: bndl.sealed,
Expand Down

0 comments on commit 879c0ab

Please sign in to comment.