Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
distractedm1nd committed Dec 21, 2022
2 parents 9d0dd05 + 76c93a1 commit affaeb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions share/eds/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (s *Store) CARBlockstore(
key := shard.KeyFromString(root.String())
shardAccessor, err := s.getAccessor(ctx, key)
if err != nil {
return nil, fmt.Errorf("failed to get accessor: %w", err)
return nil, fmt.Errorf("eds/store: failed to get accessor: %w", err)
}
return shardAccessor.bs, nil
}
Expand All @@ -221,13 +221,13 @@ func (s *Store) GetDAH(ctx context.Context, root share.DataHash) (*share.Root, e
key := shard.KeyFromString(root.String())
shardAccessor, err := s.acquireShard(ctx, key)
if err != nil {
return nil, fmt.Errorf("failed to get accessor: %w", err)
return nil, fmt.Errorf("eds/store: failed to get accessor: %w", err)
}
defer shardAccessor.Close()

reader, err := carv1.NewCarReader(shardAccessor)
if err != nil {
return nil, fmt.Errorf("failed to read DAH from car reader: %w", err)
return nil, fmt.Errorf("eds/store: failed to read DAH from car reader: %w", err)
}
return dahFromCARHeader(reader.Header), nil
}
Expand Down

0 comments on commit affaeb3

Please sign in to comment.