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:
|
if getattr(cls.cached, 'update', cls.NoUpdate) != update:
|
||||||
cls.cached.update = update
|
cls.cached.update = update
|
||||||
cls.cached.data = cls.load_nocache(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:
|
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)
|
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:
|
if getattr(cls.cached, 'update', cls.NoUpdate) != update:
|
||||||
cls.cached.update = update
|
cls.cached.update = update
|
||||||
cls.cached.data = cls.load_nocache(update)
|
cls.cached.data = cls.load_nocache(update)
|
||||||
return cls.cached
|
return cls.cached.data
|
||||||
|
|
||||||
def get_locations(self, location, restrictions):
|
def get_locations(self, location, restrictions):
|
||||||
locations = ()
|
locations = ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue