Skip to content

Commit

Permalink
remove unused errchan
Browse files Browse the repository at this point in the history
  • Loading branch information
dmanc committed Nov 27, 2024
1 parent 851ed2b commit 914d94a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions encoding/kzg/prover/icicle/multiframe_proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,10 @@ func (p *KzgMultiProofIcicleBackend) ComputeMultiFrameProof(polyFr []fr.Element,

wg := sync.WaitGroup{}
wg.Add(1)
errChan := make(chan error, 1)

var msmDone, firstECNttDone, secondECNttDone time.Time
runtime.RunOnDevice(&p.Device, func(args ...any) {
defer wg.Done()
defer close(errChan)
defer func() {
if r := recover(); r != nil {
icicleErr = fmt.Errorf("GPU operation panic: %v", r)
Expand Down
2 changes: 1 addition & 1 deletion encoding/rs/icicle/extend_poly.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ func (g *RsIcicleBackend) ExtendPolyEval(coeffs []fr.Element) ([]fr.Element, err
return nil, fmt.Errorf("failed to set device: %v", err.AsString())
}

var icicleErr error
// Perform NTT
var icicleErr error
wg := sync.WaitGroup{}
wg.Add(1)
icicleRuntime.RunOnDevice(&g.Device, func(args ...any) {
Expand Down

0 comments on commit 914d94a

Please sign in to comment.