Browse Source

解决BucketPool的bug

gitlink
Sydonian 1 year ago
parent
commit
6e5bd91d89
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      common/pkgs/ioswitch2/ops2/ec.go

+ 2
- 2
common/pkgs/ioswitch2/ops2/ec.go View File

@@ -69,7 +69,7 @@ func (o *ECMultiply) Execute(ctx *exec.ExecContext, e *exec.Executor) error {
fut := future.NewSetVoid()
go func() {
mul := ec.GaloisMultiplier().BuildGalois()
defer outputBufPool.WakeUpAll()
defer outputBufPool.Close()

readLens := math2.SplitLessThan(o.ChunkSize, 64*1024)
readLenIdx := 0
@@ -113,7 +113,7 @@ func (o *ECMultiply) Execute(ctx *exec.ExecContext, e *exec.Executor) error {
}()

go func() {
defer outputBufPool.WakeUpAll()
defer outputBufPool.Close()

for {
outputChunks, ok := outputBufPool.GetFilled()


Loading…
Cancel
Save