Skip to content

Commit 5e08a77

Browse files
committed
blockservice: move to single unique struct and add WithContentBlocker option
The idea is to have a THE blockservice object, this means we wont ever have an issue where multiple competitive features play poorly with each other due to how nested blockservices could do. Let's say we add multi-exchange based on content routing, do we want to have to handle the mess this could create with nested blockservices ? It implements features for ipfs-shipyard/nopfs#34.
1 parent b8ac21b commit 5e08a77

File tree

8 files changed

+182
-111
lines changed

8 files changed

+182
-111
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The following emojis are used to highlight certain changes:
1717
### Added
1818

1919
- `blockservice` now has `ContextWithSession` and `EmbedSessionInContext` functions, which allows to embed a session in a context. Future calls to `BlockGetter.GetBlock`, `BlockGetter.GetBlocks` and `NewSession` will use the session in the context.
20+
- `blockservice` now has `WithContentBlocker` option which allows to filter Add and Get requests by CID.
2021

2122
### Changed
2223

0 commit comments

Comments
 (0)