aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs.h')
-rw-r--r--src/fs/fs.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/fs/fs.h b/src/fs/fs.h
index d48af35b4..d2c2d3c7f 100644
--- a/src/fs/fs.h
+++ b/src/fs/fs.h
@@ -34,10 +34,19 @@
34#include "gnunet_block_lib.h" 34#include "gnunet_block_lib.h"
35#include "block_fs.h" 35#include "block_fs.h"
36 36
37
38/**
39 * Maximum number of outgoing messages we queue per peer.
40 */
41#define MAX_QUEUE_PER_PEER 16
42
37/** 43/**
38 * Maximum size of the datastore queue for P2P operations. 44 * Maximum size of the datastore queue for P2P operations.
45 * Needs to be large enough to queue MAX_QUEUE_PER_PEER
46 * operations for roughly the number of active (connected)
47 * peers.
39 */ 48 */
40#define MAX_DATASTORE_QUEUE 16 49#define MAX_DATASTORE_QUEUE (16 * MAX_QUEUE_PER_PEER)
41 50
42/** 51/**
43 * Maximum number of blocks we keep in memory for migration. 52 * Maximum number of blocks we keep in memory for migration.