From 8238dc0a23a0c654dc25e6debe738ae3321a46ce Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 5 Mar 2024 13:39:47 +0000 Subject: [Project] Start optimization of userdata hashing --- src/lua/lua_logger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lua/lua_logger.c') diff --git a/src/lua/lua_logger.c b/src/lua/lua_logger.c index f4f8f3dbf..b9969b86b 100644 --- a/src/lua/lua_logger.c +++ b/src/lua/lua_logger.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. @@ -653,7 +653,7 @@ lua_logger_get_id(lua_State *L, gint pos, GError **err) clsname = lua_tostring(L, -1); - if (strcmp(clsname, "rspamd{task}") == 0) { + if (strcmp(clsname, rspamd_task_classname) == 0) { struct rspamd_task *task = lua_check_task(L, pos); if (task) { -- cgit v1.2.3