mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-06 01:18:17 +02:00
server: use errors.Is for error comparison
This commit is contained in:
@@ -3604,7 +3604,7 @@ func (s *server) establishPersistentConnections() error {
|
||||
// attempt to connect to based on our set of previous connections. Set
|
||||
// the reconnection port to the default peer port.
|
||||
linkNodes, err := s.chanStateDB.LinkNodeDB().FetchAllLinkNodes()
|
||||
if err != nil && err != channeldb.ErrLinkNodesNotFound {
|
||||
if err != nil && !errors.Is(err, channeldb.ErrLinkNodesNotFound) {
|
||||
return fmt.Errorf("failed to fetch all link nodes: %w", err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user