fix router and locator .load()
This commit is contained in:
parent
f4257fbf3f
commit
295334a4a3
2 changed files with 2 additions and 2 deletions
|
@ -146,7 +146,7 @@ class Locator:
|
|||
if getattr(cls.cached, 'update', cls.NoUpdate) != update:
|
||||
cls.cached.update = update
|
||||
cls.cached.data = cls.load_nocache(update)
|
||||
return cls.cached
|
||||
return cls.cached.data
|
||||
|
||||
def convert_raw_scan_data(self, raw_scan_data: list[LocateRequestPeerSchema]) -> ScanData:
|
||||
return self.convert_scan([d.dict() for d in raw_scan_data], create_peers=False)
|
||||
|
|
|
@ -294,7 +294,7 @@ class Router:
|
|||
if getattr(cls.cached, 'update', cls.NoUpdate) != update:
|
||||
cls.cached.update = update
|
||||
cls.cached.data = cls.load_nocache(update)
|
||||
return cls.cached
|
||||
return cls.cached.data
|
||||
|
||||
def get_locations(self, location, restrictions):
|
||||
locations = ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue