mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-02 03:54:26 +02:00
discovery: use errors.Is for error check
Ensure that the check works for wrapped errors. Otherwise, this breaks for a SQLStore graph backend which wraps the error it returns.
This commit is contained in:
@@ -236,7 +236,7 @@ func (c *ChannelGraphBootstrapper) SampleNodeAddrs(_ context.Context,
|
||||
|
||||
return errFound
|
||||
})
|
||||
if err != nil && err != errFound {
|
||||
if err != nil && !errors.Is(err, errFound) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user