Skip to content

Commit 3dec443

Browse files
committed
blockservice: remove deprecated NewWriteThrough function
1 parent 0302f69 commit 3dec443

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

CHANGELOG.md

+1
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.NewWritethrough` deprecated function has been removed, instead you can do `blockservice.New(..., ..., WriteThrough())` like previously.
2021

2122
### Changed
2223

blockservice/blockservice.go

-8
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,6 @@ func New(bs blockstore.Blockstore, exchange exchange.Interface, opts ...Option)
119119
return service
120120
}
121121

122-
// NewWriteThrough creates a BlockService that guarantees writes will go
123-
// through to the blockstore and are not skipped by cache checks.
124-
//
125-
// Deprecated: Use [New] with the [WriteThrough] option.
126-
func NewWriteThrough(bs blockstore.Blockstore, exchange exchange.Interface) BlockService {
127-
return New(bs, exchange, WriteThrough())
128-
}
129-
130122
// Blockstore returns the blockstore behind this blockservice.
131123
func (s *blockService) Blockstore() blockstore.Blockstore {
132124
return s.blockstore

0 commit comments

Comments
 (0)