help wanted
仓库指标
- 星标
- (618 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
Leaving this here while I'm reviewing the current pubsub packages...
-
Don't serialize message sends, eg: https://github.com/libp2p/py-libp2p/blob/master/libp2p/pubsub/gossipsub.py#L172-L177 Happens here and in
floodsubas well -- this is a great place to useasyncio.gather -
"separate policy from mechanism" -- in the same place, we defer to the particular
routerto decide who to send new msgs to... and then do the sending in the router itself. as far as i can tell, we can pull out the sending part into thePubsubclass, relying on therouterfor what should be its only job -- determining peers for some action