1
1
Fork 0
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:
Jeff Becker 2020-02-27 11:37:23 -05:00
parent 7a84bbe459
commit dea78d2326
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05
4 changed files with 6 additions and 9 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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

View file

@ -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 >(