@@ -176,7 +176,7 @@ func (m *Manager) maybeFinishDrops(interrupt <-chan struct{}) error {
176176 }
177177
178178 if interruptRequested (interrupt ) {
179- return errInterruptRequested
179+ return ErrInterruptRequested
180180 }
181181
182182 // Finish dropping any of the enabled indexes that are already in the
@@ -240,7 +240,7 @@ func (m *Manager) Init(chain *blockchain.BlockChain, interrupt <-chan struct{})
240240 }
241241
242242 if interruptRequested (interrupt ) {
243- return errInterruptRequested
243+ return ErrInterruptRequested
244244 }
245245
246246 // Finish and drops that were previously interrupted.
@@ -350,7 +350,7 @@ func (m *Manager) Init(chain *blockchain.BlockChain, interrupt <-chan struct{})
350350 }
351351
352352 if interruptRequested (interrupt ) {
353- return errInterruptRequested
353+ return ErrInterruptRequested
354354 }
355355 }
356356
@@ -411,7 +411,7 @@ func (m *Manager) Init(chain *blockchain.BlockChain, interrupt <-chan struct{})
411411 }
412412
413413 if interruptRequested (interrupt ) {
414- return errInterruptRequested
414+ return ErrInterruptRequested
415415 }
416416
417417 // Connect the block for all indexes that need it.
@@ -448,7 +448,7 @@ func (m *Manager) Init(chain *blockchain.BlockChain, interrupt <-chan struct{})
448448 progressLogger .LogBlockHeight (block )
449449
450450 if interruptRequested (interrupt ) {
451- return errInterruptRequested
451+ return ErrInterruptRequested
452452 }
453453 }
454454
@@ -657,7 +657,7 @@ func dropIndex(db database.DB, idxKey []byte, idxName string, interrupt <-chan s
657657 }
658658
659659 if interruptRequested (interrupt ) {
660- return errInterruptRequested
660+ return ErrInterruptRequested
661661 }
662662
663663 // Drop the bucket itself.
0 commit comments