Skip to content

Commit

Permalink
switch back to klauspost upstream, WithMaxGoroutines()
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Feb 19, 2017
1 parent 4d4124e commit 2909e3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fec.go
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/binary"
"sync/atomic"

"github.com/xtaci/reedsolomon"
"github.com/klauspost/reedsolomon"
)

const (
Expand Down Expand Up @@ -54,7 +54,7 @@ func newFEC(rxlimit, dataShards, parityShards int) *FEC {
fec.parityShards = parityShards
fec.shardSize = dataShards + parityShards
fec.paws = (0xffffffff/uint32(fec.shardSize) - 1) * uint32(fec.shardSize)
enc, err := reedsolomon.New(dataShards, parityShards)
enc, err := reedsolomon.New(dataShards, parityShards, reedsolomon.WithMaxGoroutines(1))
if err != nil {
return nil
}
Expand Down

0 comments on commit 2909e3c

Please sign in to comment.