]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 21 Nov 2023 04:16:45 +0000 (05:16 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 21 Nov 2023 04:25:01 +0000 (05:25 +0100)
- also need to reduce depth here

fba/http/federation.py
fba/http/nodeinfo.py

index 1aa79b125da37eb8b44b87d5d6fd4e283bae8dce..0fd572039a88a578ad54bc912bfc5d31876e0f07 100644 (file)
@@ -87,6 +87,7 @@ def fetch_instances(domain: str, origin: str, software: str, command: str, path:
         logger.debug("software='%s'", software)
         if software_helper.is_relay(software):
             logger.debug("software='%s' is a relay software - EXIT!", software)
+            _DEPTH = _DEPTH - 1
             return
 
     logger.debug("Updating last_instance_fetch for domain='%s' ...", domain)
@@ -122,6 +123,7 @@ def fetch_instances(domain: str, origin: str, software: str, command: str, path:
         return
     elif len(peerlist) == 0:
         logger.debug("domain='%s',software='%s' has an empty peer list returned - EXIT!", domain, software)
+        _DEPTH = _DEPTH - 1
         return
 
     logger.info("Checking %d instance(s) from domain='%s',software='%s',depth=%d ...", len(peerlist), domain, software, _DEPTH)
index 341a15fbb684925e59d658ce3e93c15d3a705a6b..5810c568b4a32e3ea247a37893cd5de93aeef184 100644 (file)
@@ -25,8 +25,6 @@ from fba.http import network
 
 from fba.models import instances
 
-_DEPTH = 0
-
 logging.basicConfig(level=logging.INFO)
 logger = logging.getLogger(__name__)