mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Missed default size for new bdDhtFns.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4797 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d138dde66c
commit
66f6c08f33
@ -318,6 +318,12 @@ void bdStdDht::bdPrintNodeId(std::ostream &out, const bdNodeId *a)
|
||||
|
||||
/**************************/
|
||||
|
||||
bdModDht::bdModDht()
|
||||
:mNodesPerBucket(BITDHT_STANDARD_BUCKET_SIZE)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void bdModDht::setNodesPerBucket(uint16_t nodesPerBucket)
|
||||
{
|
||||
mNodesPerBucket = nodesPerBucket;
|
||||
|
@ -90,6 +90,7 @@ virtual void bdPrintNodeId(std::ostream &out, const bdNodeId *a);
|
||||
class bdModDht: public bdStdDht
|
||||
{
|
||||
public:
|
||||
bdModDht();
|
||||
virtual void setNodesPerBucket(uint16_t nodesPerBucket);
|
||||
virtual uint16_t bdNodesPerBucket(); /* used for bdspace */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user