[Node] Faster query
This commit is contained in:
parent
c1dda9a028
commit
12eeac1903
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#define NODE_HALFLIFE (3 * 60 * 1000) //3min
|
||||
#define NODE_REQUEST_LIMIT 3
|
||||
#define NODE_REQUEST_LIMIT 10
|
||||
|
||||
namespace Components
|
||||
{
|
||||
|
@ -106,6 +106,7 @@ namespace Components
|
||||
dataPacket.set_data(packet->data);
|
||||
|
||||
Network::SendCommand(signature.first, "sessionFin", dataPacket.SerializeAsString());
|
||||
std::this_thread::sleep_for(3ms);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#define SESSION_TIMEOUT (10 * 1000) //10s
|
||||
#define SESSION_MAX_RETRIES 3
|
||||
#define SESSION_REQUEST_LIMIT 3
|
||||
#define SESSION_REQUEST_LIMIT 10
|
||||
|
||||
//#define DISABLE_SESSION
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user