diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-29 12:22:46 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-29 12:22:46 +0000 |
commit | 4929e73f2baaa0dd29759a6705ac8dd1b06beb90 (patch) | |
tree | e5ea92f88a12cb3ad667ef92eda62b643f2adcc9 /src/lua/lua_http.c | |
parent | c16f6393333532ceeb65fdc7f62efbc14a987329 (diff) | |
download | rspamd-4929e73f2baaa0dd29759a6705ac8dd1b06beb90.tar.gz rspamd-4929e73f2baaa0dd29759a6705ac8dd1b06beb90.zip |
[Project] Another rework for symbols cache
Diffstat (limited to 'src/lua/lua_http.c')
-rw-r--r-- | src/lua/lua_http.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index 9da25bc71..806322449 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -179,7 +179,7 @@ lua_http_push_error (struct lua_http_cbdata *cbd, const char *err) if (cbd->item) { - rspamd_symbols_cache_set_cur_item (cbd->task, cbd->item); + rspamd_symcache_set_cur_item (cbd->task, cbd->item); } if (lua_pcall (L, 1, 0, 0) != 0) { @@ -267,7 +267,7 @@ lua_http_finish_handler (struct rspamd_http_connection *conn, if (cbd->item) { /* Replace watcher to deal with nested calls */ - rspamd_symbols_cache_set_cur_item (cbd->task, cbd->item); + rspamd_symcache_set_cur_item (cbd->task, cbd->item); } if (lua_pcall (L, 4, 0, 0) != 0) { @@ -358,7 +358,7 @@ lua_http_resume_handler (struct rspamd_http_connection *conn, if (cbd->item) { /* Replace watcher to deal with nested calls */ - rspamd_symbols_cache_set_cur_item (cbd->task, cbd->item); + rspamd_symcache_set_cur_item (cbd->task, cbd->item); } lua_thread_resume (cbd->thread, 2); @@ -895,7 +895,7 @@ lua_http_request (lua_State *L) cbd->task = task; if (task) { - cbd->item = rspamd_symbols_cache_get_cur_item (task); + cbd->item = rspamd_symcache_get_cur_item (task); } if (msg->host) { |