Make format

pull/759/head
Michael 5 years ago
parent d1990b5e93
commit 84601fa474
No known key found for this signature in database
GPG Key ID: 2D51757B47E2434C

@ -147,7 +147,7 @@ extern "C"
int flags; /* ifr.ifr_flags on Unix */
char if_name[IF_NAMESIZE];
#if defined(Windows)
int idx; /* needed to set ipv6 address */
int idx; /* needed to set ipv6 address */
#endif
#if defined(FreeBSD)
int mode;

@ -633,16 +633,17 @@ namespace libuv
Loop::CloseAll()
{
llarp::LogInfo("Closing all handles");
uv_walk(m_Impl.get(),
[](uv_handle_t* h, void*) {
if(uv_is_closing(h))
return;
if(h->data && uv_is_active(h))
{
static_cast< glue* >(h->data)->Close();
}
},
nullptr);
uv_walk(
m_Impl.get(),
[](uv_handle_t* h, void*) {
if(uv_is_closing(h))
return;
if(h->data && uv_is_active(h))
{
static_cast< glue* >(h->data)->Close();
}
},
nullptr);
}
void

@ -103,8 +103,8 @@ namespace llarp
}
bool
Path::HandleLRSM(uint64_t status,
std::array< EncryptedFrame, 8 >& frames, AbstractRouter* r)
Path::HandleLRSM(uint64_t status, std::array< EncryptedFrame, 8 >& frames,
AbstractRouter* r)
{
uint64_t currentStatus = status;

@ -164,14 +164,15 @@ namespace llarp
HopHandler_ptr
PathContext::GetByUpstream(const RouterID& remote, const PathID_t& id)
{
auto own = MapGet(m_OurPaths, id,
[](const PathSet_ptr) -> bool {
// TODO: is this right?
return true;
},
[remote, id](PathSet_ptr p) -> HopHandler_ptr {
return p->GetByUpstream(remote, id);
});
auto own = MapGet(
m_OurPaths, id,
[](const PathSet_ptr) -> bool {
// TODO: is this right?
return true;
},
[remote, id](PathSet_ptr p) -> HopHandler_ptr {
return p->GetByUpstream(remote, id);
});
if(own)
return own;

@ -309,7 +309,8 @@ namespace llarp
if(self->frame.T != self->msg->tag)
{
LogError("convotag missmatch: ", self->frame.T, " != ", self->msg->tag);
LogError("convotag missmatch: ", self->frame.T,
" != ", self->msg->tag);
self->msg.reset();
delete self;
return;

Loading…
Cancel
Save