forked from LBRYCommunity/lbry-sdk
do a reatriable call so the service doesnt die
This commit is contained in:
parent
820b7a6753
commit
abfe0be81e
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ class WalletServerPayer:
|
||||||
async def pay(self):
|
async def pay(self):
|
||||||
while self.running:
|
while self.running:
|
||||||
await asyncio.sleep(self.payment_period)
|
await asyncio.sleep(self.payment_period)
|
||||||
features = await self.ledger.network.get_server_features()
|
features = await self.ledger.network.retriable_call(self.ledger.network.get_server_features)
|
||||||
address = features['payment_address']
|
address = features['payment_address']
|
||||||
amount = str(features['daily_fee'])
|
amount = str(features['daily_fee'])
|
||||||
if not address or not amount:
|
if not address or not amount:
|
||||||
|
|
Loading…
Reference in a new issue