aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-03-05 13:39:47 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-03-05 13:39:47 +0000
commit8238dc0a23a0c654dc25e6debe738ae3321a46ce (patch)
tree786d8a9a0e1e8928bb5be8c262e9f7baf32f655f /src/rspamadm
parent1fc2eaa7b39eb81deafe925bb56fc8d7cd3de078 (diff)
downloadrspamd-8238dc0a23a0c654dc25e6debe738ae3321a46ce.tar.gz
rspamd-8238dc0a23a0c654dc25e6debe738ae3321a46ce.zip
[Project] Start optimization of userdata hashing
Diffstat (limited to 'src/rspamadm')
-rw-r--r--src/rspamadm/lua_repl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rspamadm/lua_repl.c b/src/rspamadm/lua_repl.c
index 432c4de76..d3f32c9db 100644
--- a/src/rspamadm/lua_repl.c
+++ b/src/rspamadm/lua_repl.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Vsevolod Stakhov
+ * Copyright 2024 Vsevolod Stakhov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -448,7 +448,7 @@ rspamadm_lua_message_handler(lua_State *L, gint argc, gchar **argv)
lua_pushvalue(L, func_idx);
ptask = lua_newuserdata(L, sizeof(*ptask));
*ptask = task;
- rspamd_lua_setclass(L, "rspamd{task}", -1);
+ rspamd_lua_setclass(L, rspamd_task_classname, -1);
if (lua_repl_thread_call(thread, 1, argv[i], lua_thread_str_error_cb) == 0) {