snowflake changes from global static variables to one instance per thread
This commit is contained in:
@@ -6,7 +6,6 @@ extern "C"
|
||||
#endif
|
||||
|
||||
#include "packet_io.h"
|
||||
#include "snowflake.h"
|
||||
#include "ip_reassembly.h"
|
||||
#include "session_manager.h"
|
||||
|
||||
@@ -26,6 +25,12 @@ struct schedule_options
|
||||
uint64_t packet_io_yield_interval; // range: [1, 60000] (ms)
|
||||
};
|
||||
|
||||
struct snowflake_options
|
||||
{
|
||||
uint8_t snowflake_base;
|
||||
uint8_t snowflake_offset;
|
||||
};
|
||||
|
||||
struct stellar_config
|
||||
{
|
||||
struct packet_io_options pkt_io_opts;
|
||||
|
||||
Reference in New Issue
Block a user