mirror of https://github.com/oxen-io/lokinet
Simplify connection limit constants
parent
14e7789847
commit
5b520a4dff
@ -1,13 +0,0 @@
|
||||
#include <constants/limits.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
namespace limits
|
||||
{
|
||||
/// snode limit parameters
|
||||
const LimitParameters snode = {6, 60};
|
||||
|
||||
/// client limit parameters
|
||||
const LimitParameters client = {4, 6};
|
||||
} // namespace limits
|
||||
} // namespace llarp
|
@ -1,26 +0,0 @@
|
||||
#ifndef LLARP_CONSTANTS_LIMITS_HPP
|
||||
#define LLARP_CONSTANTS_LIMITS_HPP
|
||||
#include <cstddef>
|
||||
namespace llarp
|
||||
{
|
||||
namespace limits
|
||||
{
|
||||
/// Limits are a struct that contains all hard and soft limit
|
||||
/// parameters for a given mode of operation
|
||||
struct LimitParameters
|
||||
{
|
||||
/// minimum routers needed to run
|
||||
std::size_t DefaultMinRouters;
|
||||
/// hard limit on router sessions (by pubkey)
|
||||
std::size_t DefaultMaxRouters;
|
||||
};
|
||||
|
||||
/// snode limit parameters
|
||||
const extern LimitParameters snode;
|
||||
|
||||
/// client limit parameters
|
||||
const extern LimitParameters client;
|
||||
} // namespace limits
|
||||
} // namespace llarp
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue