-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
It is possible that floodsub (0.16, latest master) will create NetworkBehaviourAction
s in self.events
but never wake the task calling NetworkBehaviour::poll
through std::task::Waker
. Looking at libp2p protocols as a whole there are uses of VecDeque
use but no waker use in kad, identify, gossipsub and floodsub.
Am I missing something on how the libp2p is supposed to wake up tasks, or is the caller library user expected to wakeup the task manually on some timer or something else? I've understood that the expected behaviour with methods returning std::task::Poll<T>
which take the std::task::Context
argument is to notify through the context's waker having made progress.
Metadata
Metadata
Assignees
Labels
No labels