We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 345890a commit d50e9d2Copy full SHA for d50e9d2
consensus/ethash/ethash.go
@@ -537,7 +537,6 @@ func NewShared() *Ethash {
537
538
// Close closes the exit channel to notify all backend threads exiting.
539
func (ethash *Ethash) Close() error {
540
- var err error
541
ethash.closeOnce.Do(func() {
542
// Short circuit if the exit channel is not allocated.
543
if ethash.remote == nil {
@@ -546,7 +545,7 @@ func (ethash *Ethash) Close() error {
546
545
close(ethash.remote.requestExit)
547
<-ethash.remote.exitCh
548
})
549
- return err
+ return nil
550
}
551
552
// cache tries to retrieve a verification cache for the specified block number
0 commit comments