Skip to content

Commit

Permalink
godoc: added new Default values for SetConcurrency (#29)
Browse files Browse the repository at this point in the history
it seems that the default was changed and the function documentation was wrong
  • Loading branch information
mschneider82 authored Feb 12, 2020
1 parent c94cf00 commit 3286875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gzip.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ type result struct {
// With this you can control the approximate size of your blocks,
// as well as how many you want to be processing in parallel.
//
// Default values for this is SetConcurrency(250000, 16),
// meaning blocks are split at 250000 bytes and up to 16 blocks
// Default values for this is SetConcurrency(defaultBlockSize, runtime.GOMAXPROCS(0)),
// meaning blocks are split at 1 MB and up to the number of CPU threads
// can be processing at once before the writer blocks.
func (z *Writer) SetConcurrency(blockSize, blocks int) error {
if blockSize <= tailSize {
Expand Down

0 comments on commit 3286875

Please sign in to comment.