diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-03-09 18:03:27 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-03-09 18:03:27 +0300 |
commit | 6f2c9acd1841ca20a1388b34aef64e9f00459090 (patch) | |
tree | c0b9c1063ec464027d1ca29a793f6c0b7a6878d5 /src/nxt_stream_module.c | |
parent | 5745e4826427155e29c1d520fe77811a0f570689 (diff) | |
download | unit-6f2c9acd1841ca20a1388b34aef64e9f00459090.tar.gz unit-6f2c9acd1841ca20a1388b34aef64e9f00459090.tar.bz2 |
Processes refactoring.
The cycle has been renamed to the runtime.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_stream_module.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nxt_stream_module.c b/src/nxt_stream_module.c index 89201893..e89cd6fd 100644 --- a/src/nxt_stream_module.c +++ b/src/nxt_stream_module.c @@ -5,7 +5,7 @@ */ #include <nxt_main.h> -#include <nxt_cycle.h> +#include <nxt_runtime.h> static void nxt_stream_connection_peer(nxt_task_t *task, @@ -17,7 +17,7 @@ static void nxt_stream_connection_close(nxt_task_t *task, void *obj, void nxt_stream_connection_init(nxt_task_t *task, void *obj, void *data) { - nxt_cycle_t *cycle; + nxt_runtime_t *rt; nxt_event_conn_t *c; nxt_upstream_peer_t *up; @@ -32,10 +32,10 @@ nxt_stream_connection_init(nxt_task_t *task, void *obj, void *data) up->data = c; - cycle = nxt_thread_cycle(); + rt = task->thread->runtime; - if (cycle->upstream.length != 0) { - up->addr = cycle->upstream; + if (rt->upstream.length != 0) { + up->addr = rt->upstream; } else { nxt_str_set(&up->addr, "127.0.0.1:8080"); |