aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/symbols_cache.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-06 15:39:23 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-06 15:39:23 +0100
commit25b0522484e06ca21957abc2fa7f234fe23e8f7d (patch)
tree805c0bb4d4e99197b68db6edc37e15732b944cdc /src/libserver/symbols_cache.c
parent2a5e10cd472278a35dc4a7980a8130bcb9ca6430 (diff)
downloadrspamd-25b0522484e06ca21957abc2fa7f234fe23e8f7d.tar.gz
rspamd-25b0522484e06ca21957abc2fa7f234fe23e8f7d.zip
Avoid global rspamd_main usage.
Diffstat (limited to 'src/libserver/symbols_cache.c')
-rw-r--r--src/libserver/symbols_cache.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c
index e7e20eaea..6e97dbd38 100644
--- a/src/libserver/symbols_cache.c
+++ b/src/libserver/symbols_cache.c
@@ -962,15 +962,7 @@ rspamd_symbols_cache_check_symbol (struct rspamd_task *task,
rspamd_session_watch_start (task->s, rspamd_symbols_cache_watcher_cb,
item);
- if (item->symbol != NULL &&
- G_UNLIKELY (check_debug_symbol (task->cfg, item->symbol))) {
- rspamd_log_debug (rspamd_main->logger);
- item->func (task, item->user_data);
- rspamd_log_nodebug (rspamd_main->logger);
- }
- else {
- item->func (task, item->user_data);
- }
+ item->func (task, item->user_data);
t2 = rspamd_get_ticks ();
diff = (t2 - t1) * 1000000;