diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-24 09:13:24 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-24 09:13:24 +0100 |
commit | 6d12ba86f224b77a5047643e7c304fef1d763b26 (patch) | |
tree | 2a349f5107a18d2d0f8d8d5a2bfece1c93e6c83a /src/lua/lua_dns.c | |
parent | ed9d4ec8c8b62664f0157ccb6dceaba264e1891b (diff) | |
download | rspamd-6d12ba86f224b77a5047643e7c304fef1d763b26.tar.gz rspamd-6d12ba86f224b77a5047643e7c304fef1d763b26.zip |
[Minor] Split lua_thread_pool_get on lua_thread_pool_get_for_task/lua_thread_pool_get_for_config
Diffstat (limited to 'src/lua/lua_dns.c')
-rw-r--r-- | src/lua/lua_dns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_dns.c b/src/lua/lua_dns.c index 805921a03..77a7ef855 100644 --- a/src/lua/lua_dns.c +++ b/src/lua/lua_dns.c @@ -117,7 +117,7 @@ lua_dns_request (lua_State *L) cbdata->s = session; cbdata->w = rspamd_session_get_watcher (session); rspamd_session_watcher_push (session); - return lua_yield_thread (cbdata->thread, 0); + return lua_thread_yield (cbdata->thread, 0); } else { lua_pushnil (L); @@ -147,7 +147,7 @@ lua_dns_callback (struct rdns_reply *reply, void *arg) lua_pushvalue (L, -3); } - lua_resume_thread (cbdata->thread, 2); + lua_thread_resume (cbdata->thread, 2); if (cbdata->s) { rspamd_session_watcher_pop (cbdata->s, cbdata->w); |