mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-02 03:40:12 +00:00
Weird clang unused variable CI fix
This commit is contained in:
parent
eb37796b65
commit
cb2a2cf6e3
@ -20,11 +20,10 @@ namespace llarp::exit
|
||||
: llarp::path::Builder{r, numpaths, hoplen}
|
||||
, exit_router{routerId}
|
||||
, packet_write_func{std::move(writepkt)}
|
||||
, _counter{0}
|
||||
, _last_use{r->now()}
|
||||
, m_BundleRC{false}
|
||||
, m_Parent{parent}
|
||||
, _parent{parent}
|
||||
{
|
||||
(void)_parent;
|
||||
crypto::identity_keygen(exit_key);
|
||||
}
|
||||
|
||||
@ -219,34 +218,6 @@ namespace llarp::exit
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
BaseSession::QueueUpstreamTraffic(llarp::net::IPPacket, const size_t, service::ProtocolType)
|
||||
{
|
||||
// auto& queue = m_Upstream[pkt.size() / N];
|
||||
// queue overflow
|
||||
// if (queue.size() >= MaxUpstreamQueueLength)
|
||||
// return false;
|
||||
// if (queue.size() == 0)
|
||||
// {
|
||||
// queue.emplace_back();
|
||||
// queue.back().protocol = t;
|
||||
// return queue.back().PutBuffer(llarp_buffer_t{pkt}, _counter++);
|
||||
// }
|
||||
|
||||
// auto& back = queue.back();
|
||||
// // pack to nearest N
|
||||
// if (back.Size() + pkt.size() > N)
|
||||
// {
|
||||
// queue.emplace_back();
|
||||
// queue.back().protocol = t;
|
||||
// return queue.back().PutBuffer(llarp_buffer_t{pkt}, _counter++);
|
||||
// }
|
||||
// back.protocol = t;
|
||||
// return back.PutBuffer(llarp_buffer_t{pkt}, _counter++);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
BaseSession::IsReady() const
|
||||
{
|
||||
|
@ -81,10 +81,6 @@ namespace llarp
|
||||
void
|
||||
HandlePathBuilt(llarp::path::Path_ptr p) override;
|
||||
|
||||
bool
|
||||
QueueUpstreamTraffic(
|
||||
llarp::net::IPPacket pkt, const size_t packSize, service::ProtocolType t);
|
||||
|
||||
/// flush upstream to exit via paths
|
||||
bool
|
||||
FlushUpstream();
|
||||
@ -163,12 +159,12 @@ namespace llarp
|
||||
}
|
||||
};
|
||||
|
||||
[[maybe_unused]] uint64_t _counter;
|
||||
// uint64_t _counter;
|
||||
llarp_time_t _last_use;
|
||||
|
||||
std::vector<SessionReadyFunc> m_PendingCallbacks;
|
||||
[[maybe_unused]] const bool m_BundleRC;
|
||||
[[maybe_unused]] EndpointBase* const m_Parent;
|
||||
// const bool _bundle_RC;
|
||||
EndpointBase* const _parent;
|
||||
|
||||
void
|
||||
CallPendingCallbacks(bool success);
|
||||
|
Loading…
Reference in New Issue
Block a user