summaryrefslogtreecommitdiff
path: root/datastore-leveldb/src/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'datastore-leveldb/src/server.cpp')
-rw-r--r--datastore-leveldb/src/server.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/datastore-leveldb/src/server.cpp b/datastore-leveldb/src/server.cpp
index 1337466..8dd0ee2 100644
--- a/datastore-leveldb/src/server.cpp
+++ b/datastore-leveldb/src/server.cpp
@@ -29,7 +29,6 @@ int begin_request_handler(struct mg_connection *conn) {
return 1;
}
}
-
return 0;
}
@@ -38,14 +37,14 @@ struct sigaction old_action;
// Stop the server.
void sigint_handler(int s) {
mg_stop(ctx);
- closeDB();
+ db_close();
exit(0);
}
int main(int argc, char **argv) {
struct mg_callbacks callbacks;
const char *options[] = {
- "num_threads", "10",
+ "num_threads", "8",
"listening_ports", "8080",
"document_root", "wwwroot",
NULL};