diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -35,6 +35,7 @@ #include <microhttpd.h> #include "config.h" +#include "index.h" static char *index_format_template = NULL; @@ -119,6 +120,14 @@ int main() { return 1; } + /* begin indexing */ + if (index_init() < 0) + return 1; + + index_t index = index_new(INIT_MAP_CAPACITY, root); + + printf("[index] indexed\n"); + while (1) { sleep(1000); } |
