server: fix python 3.8 issues

This commit is contained in:
Koushik Dutta
2023-04-18 10:45:20 -07:00
parent 98dc0b1b6d
commit 5de67fca86
3 changed files with 6 additions and 6 deletions

View File

@@ -422,7 +422,7 @@ class PluginRemote:
peer, peerReadLoop = await rpc_reader.prepare_peer_readloop(self.loop, rpcTransport)
peer.onProxySerialization = lambda value, proxyId: onProxySerialization(
value, proxyId, clusterPeerPort)
future = asyncio.Future[rpc.RpcPeer]()
future: asyncio.Future[rpc.RpcPeer] = asyncio.Future()
future.set_result(peer)
clusterPeers[clusterPeerPort] = future