summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2025-04-12 12:25:02 +0200
committerJesper Jensen <jesper@jnsn.dev>2025-04-12 15:22:20 +0200
commitf15040b30fd7aea7141aa12b369036a82a69ff72 (patch)
tree7c8f05889cc5092013e5fe10f770750a98c7b680 /src/main.c
parent6fdabfdf0865f0516eaac469f0febd25daae01ae (diff)
Add a docker container
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index a51fcfc..ea1b9de 100644
--- a/src/main.c
+++ b/src/main.c
@@ -4,6 +4,7 @@
#include "metrics.h"
#include <time.h>
+#include <sys/time.h>
#include <assert.h>
#include <errno.h>
#include <signal.h>
@@ -158,13 +159,14 @@ int main(int argc, char** argv) {
struct dht dht = {0};
{
+ routing_init(NULL);
int rc = read_config();
if(rc == CONF_ENO) {
for(uint16_t i = 0; i < sizeof(myID.inner_b); i++) {
myID.inner_b[i] = rand();
}
/* myID = (struct nodeid){.inner={0xebe9bbf1, 0x3cdba6b3, 0x993e0c87, 0x900d5e25, 0x00000000}}; */
- routing_flush();
+ routing_init(&myID);
allocate_hashtable();
}