mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
change function signature for dht context to exclude time parameter
This commit is contained in:
parent
7a84bbe459
commit
dea78d2326
4 changed files with 6 additions and 9 deletions
|
@ -127,8 +127,7 @@ namespace llarp
|
|||
|
||||
/// initialize dht context and explore every exploreInterval milliseconds
|
||||
void
|
||||
Init(const Key_t& us, AbstractRouter* router,
|
||||
llarp_time_t exploreInterval) override;
|
||||
Init(const Key_t& us, AbstractRouter* router) override;
|
||||
|
||||
/// get localally stored introset by service address
|
||||
nonstd::optional< llarp::service::EncryptedIntroSet >
|
||||
|
@ -471,8 +470,7 @@ namespace llarp
|
|||
}
|
||||
|
||||
void
|
||||
Context::Init(const Key_t& us, AbstractRouter* r,
|
||||
llarp_time_t)
|
||||
Context::Init(const Key_t& us, AbstractRouter* r)
|
||||
{
|
||||
router = r;
|
||||
ourKey = us;
|
||||
|
|
|
@ -97,8 +97,7 @@ namespace llarp
|
|||
uint64_t relayOrder) = 0;
|
||||
|
||||
virtual void
|
||||
Init(const Key_t& us, AbstractRouter* router,
|
||||
llarp_time_t exploreInterval) = 0;
|
||||
Init(const Key_t& us, AbstractRouter* router) = 0;
|
||||
|
||||
virtual nonstd::optional< llarp::service::EncryptedIntroSet >
|
||||
GetIntroSetByLocation(const Key_t& location) const = 0;
|
||||
|
|
|
@ -35,7 +35,7 @@ llarp_dht_allow_transit(llarp_dht_context *ctx)
|
|||
void
|
||||
llarp_dht_context_start(struct llarp_dht_context *ctx, const byte_t *key)
|
||||
{
|
||||
ctx->impl->Init(llarp::dht::Key_t(key), ctx->parent, 2s);
|
||||
ctx->impl->Init(llarp::dht::Key_t(key), ctx->parent);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -64,8 +64,8 @@ namespace llarp
|
|||
const service::EncryptedIntroSet& introset,
|
||||
const dht::Key_t& peer, bool relayed, uint64_t relayOrder));
|
||||
|
||||
MOCK_METHOD3(Init,
|
||||
void(const dht::Key_t&, AbstractRouter*, llarp_time_t));
|
||||
MOCK_METHOD2(Init,
|
||||
void(const dht::Key_t&, AbstractRouter*));
|
||||
|
||||
MOCK_CONST_METHOD1(GetIntroSetByLocation,
|
||||
nonstd::optional< llarp::service::EncryptedIntroSet >(
|
||||
|
|
Loading…
Reference in a new issue