MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / CancelDestinationRequest

Method CancelDestinationRequest

libi2pd/Destination.cpp:780–793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778 }
779
780 void LeaseSetDestination::CancelDestinationRequest (const i2p::data::IdentHash& dest, bool notify)
781 {
782 auto s = shared_from_this ();
783 boost::asio::post (m_Service, [dest, notify, s](void)
784 {
785 auto it = s->m_LeaseSetRequests.find (dest);
786 if (it != s->m_LeaseSetRequests.end ())
787 {
788 auto requestComplete = it->second;
789 s->m_LeaseSetRequests.erase (it);
790 if (notify && requestComplete) requestComplete->Complete (nullptr);
791 }
792 });
793 }
794
795 void LeaseSetDestination::CancelDestinationRequestWithEncryptedLeaseSet (std::shared_ptr<const i2p::data::BlindedPublicKey> dest, bool notify)
796 {

Callers

nothing calls this directly

Calls 1

CompleteMethod · 0.80

Tested by

no test coverage detected