diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-04 21:41:41 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-04 21:43:29 +0200 |
commit | 254ece5752ae84019028f98615a14a9f26cc16c6 (patch) | |
tree | 9798480eacfbaf06e649ce6f2cc1df739af5b1bb /src/server.c | |
parent | sqlite: rename a column (diff) | |
download | cimple-254ece5752ae84019028f98615a14a9f26cc16c6.tar.gz cimple-254ece5752ae84019028f98615a14a9f26cc16c6.zip |
storage_sqlite: refactoring
Diffstat (limited to '')
-rw-r--r-- | src/server.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server.c b/src/server.c index f00385f..a1bbbe8 100644 --- a/src/server.c +++ b/src/server.c @@ -380,11 +380,9 @@ int server_create(struct server **_server, const struct settings *settings) if (ret < 0) goto destroy_worker_queue; - run_queue_create(&server->run_queue); - ret = storage_get_run_queue(&server->storage, &server->run_queue); if (ret < 0) - goto destroy_run_queue; + goto destroy_storage; ret = tcp_server_create(&server->tcp_server, settings->port, cmd_dispatcher_handle_conn, server->cmd_dispatcher); @@ -410,6 +408,7 @@ destroy_tcp_server: destroy_run_queue: run_queue_destroy(&server->run_queue); +destroy_storage: storage_destroy(&server->storage); destroy_worker_queue: |