summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_log_moderation.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-01-30 16:47:50 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-01-30 16:47:50 +0300
commitbb87fa11ca65d1263a32f86d51d1daa89dc11544 (patch)
treed5e74fee091b15da7ecd058341d49dba304c9822 /src/nxt_log_moderation.c
parent952291c93c96c1dc5b63576e0ee034efde998b18 (diff)
downloadunit-bb87fa11ca65d1263a32f86d51d1daa89dc11544.tar.gz
unit-bb87fa11ca65d1263a32f86d51d1daa89dc11544.tar.bz2
nxt_event_timer has been renamed to nxt_timer.
Diffstat (limited to 'src/nxt_log_moderation.c')
-rw-r--r--src/nxt_log_moderation.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_log_moderation.c b/src/nxt_log_moderation.c
index a571ae17..7c2d7a50 100644
--- a/src/nxt_log_moderation.c
+++ b/src/nxt_log_moderation.c
@@ -62,7 +62,7 @@ nxt_log_moderate_allow(nxt_log_moderation_t *mod)
mod->timer.handler = nxt_log_moderate_timer_handler;
mod->timer.log = &nxt_main_log;
- nxt_event_timer_add(thr->engine, &mod->timer, 1000);
+ nxt_timer_add(thr->engine, &mod->timer, 1000);
}
return allow;
@@ -73,12 +73,12 @@ static void
nxt_log_moderate_timer_handler(nxt_task_t *task, void *obj, void *data)
{
nxt_bool_t msg;
+ nxt_timer_t *ev;
nxt_atomic_uint_t n;
- nxt_event_timer_t *ev;
nxt_log_moderation_t *mod;
ev = obj;
- mod = nxt_event_timer_data(ev, nxt_log_moderation_t, timer);
+ mod = nxt_timer_data(ev, nxt_log_moderation_t, timer);
nxt_thread_spin_lock(&mod->lock);