server: plugin init cleanups

This commit is contained in:
Koushik Dutta
2024-11-15 23:40:38 -08:00
parent 1a2216a7de
commit 0bf0ec08ab
10 changed files with 135 additions and 126 deletions

View File

@@ -920,8 +920,8 @@ async def plugin_async_main(
clusterSetup = ClusterSetup(loop, peer)
peer.params["initializeCluster"] = lambda options: clusterSetup.initializeCluster(options)
async def ping(time: int, pong: Any):
await pong(time)
async def ping(time: int):
return time
peer.params["ping"] = ping