mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-21 17:18:22 +00:00
make blocksize and chunksize consistent
This commit is contained in:
parent
d98c1577cf
commit
5ebc32764f
@ -24,7 +24,7 @@ import ./blocktype
|
||||
export blocktype
|
||||
|
||||
const
|
||||
DefaultChunkSize*: Positive = 1024 * 256
|
||||
DefaultChunkSize* = BlockSize
|
||||
|
||||
type
|
||||
# default reader type
|
||||
@ -69,7 +69,7 @@ func new*(
|
||||
kind = ChunkerType.FixedChunker,
|
||||
reader: Reader,
|
||||
chunkSize = DefaultChunkSize,
|
||||
pad = false): T =
|
||||
pad = true): T =
|
||||
var chunker = Chunker(
|
||||
kind: kind,
|
||||
reader: reader)
|
||||
@ -85,7 +85,7 @@ proc new*(
|
||||
stream: LPStream,
|
||||
kind = ChunkerType.FixedChunker,
|
||||
chunkSize = DefaultChunkSize,
|
||||
pad = false): T =
|
||||
pad = true): T =
|
||||
## create the default File chunker
|
||||
##
|
||||
|
||||
@ -114,7 +114,7 @@ proc new*(
|
||||
file: File,
|
||||
kind = ChunkerType.FixedChunker,
|
||||
chunkSize = DefaultChunkSize,
|
||||
pad = false): T =
|
||||
pad = true): T =
|
||||
## create the default File chunker
|
||||
##
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user