server: use errors.Is for error comparison
This commit is contained in:
1 file changed
+1
-1
@@ -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