Skip to content

Commit

Permalink
Restore a couple of changes that made it through from old prs.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsanjuan committed Nov 22, 2024
1 parent f052c85 commit c360405
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 37 deletions.
37 changes: 0 additions & 37 deletions blockservice/providing_blockstore.go

This file was deleted.

6 changes: 6 additions & 0 deletions gateway/backend_blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,12 @@ func (bb *BlocksBackend) IsCached(ctx context.Context, p path.Path) bool {
return has
}

var _ WithContextHint = (*BlocksBackend)(nil)

func (bb *BlocksBackend) WrapContextForRequest(ctx context.Context) context.Context {
return blockservice.ContextWithSession(ctx, bb.blockService)
}

func (bb *BlocksBackend) ResolvePath(ctx context.Context, path path.ImmutablePath) (ContentPathMetadata, error) {
roots, lastSeg, remainder, err := bb.getPathRoots(ctx, path)
if err != nil {
Expand Down

0 comments on commit c360405

Please sign in to comment.