diff --git a/discovery/bootstrapper.go b/discovery/bootstrapper.go index 1a0f99735..6263db3f7 100644 --- a/discovery/bootstrapper.go +++ b/discovery/bootstrapper.go @@ -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 }