aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_config.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-18 10:40:04 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-18 10:40:04 +0000
commit648608c4971da3e57eaa5855919e0300f3d92ff6 (patch)
tree9d2fa2390b1e827d044f1396c3c4253c6d3722b0 /src/lua/lua_config.c
parent4d5ad72a0de469ad67a7d5fba574d9ac756998e1 (diff)
downloadrspamd-648608c4971da3e57eaa5855919e0300f3d92ff6.tar.gz
rspamd-648608c4971da3e57eaa5855919e0300f3d92ff6.zip
Revert "[Feature] Ppopagate monitored errors from rbl module"
This reverts commit e4f459ef31aed15751edd9ae77f6183b7da3b7b4.
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r--src/lua/lua_config.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index fdc572d9d..f42ca268e 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -912,14 +912,12 @@ LUA_FUNCTION_DEF (monitored, alive);
LUA_FUNCTION_DEF (monitored, latency);
LUA_FUNCTION_DEF (monitored, offline);
LUA_FUNCTION_DEF (monitored, total_offline);
-LUA_FUNCTION_DEF (monitored, propagate_error);
static const struct luaL_reg monitoredlib_m[] = {
LUA_INTERFACE_DEF (monitored, alive),
LUA_INTERFACE_DEF (monitored, latency),
LUA_INTERFACE_DEF (monitored, offline),
LUA_INTERFACE_DEF (monitored, total_offline),
- LUA_INTERFACE_DEF (monitored, propagate_error),
{"__tostring", rspamd_lua_class_tostring},
{NULL, NULL}
};
@@ -4633,23 +4631,6 @@ lua_monitored_latency (lua_State *L)
return 1;
}
-static gint
-lua_monitored_propagate_error (lua_State *L)
-{
- LUA_TRACE_POINT;
- struct rspamd_monitored *m = lua_check_monitored (L, 1);
- const gchar *what = luaL_checkstring (L, 2);
-
- if (m && what) {
- rspamd_monitored_propagate_error (m, what);
- }
- else {
- return luaL_error (L, "invalid arguments");
- }
-
- return 0;
-}
-
void
luaopen_config (lua_State * L)
{