Closed turuslan closed 1 month ago
ContentRoutingTableImpl
setTimerCleanup
weak_from_this
io_context.post
scheduleWithHandle
make_shared
enable_shared_from_this
ContentRoutingTableImpl::start
KademliaImpl::start
ContentRoutingTableImpl
is called on init threadsetTimerCleanup
requiresweak_from_this
, soio_context.post
(scheduleWithHandle
) to libp2p threadsetTimerCleanup
is called, callsweak_from_this
make_shared
and didn't initializeenable_shared_from_this
ContentRoutingTableImpl::start
is called byKademliaImpl::start
(so user doesn't need to call it)