mirror of
https://github.com/nginx/nginx.git
synced 2024-12-04 13:59:00 +08:00
use ngx_queue_init()
This commit is contained in:
parent
0134d6b622
commit
a9d3a0d37a
@ -116,17 +116,11 @@ ngx_resolver_create(ngx_peer_addr_t *addr, ngx_log_t *log)
|
||||
r->addr_rbtree.sentinel = &r->addr_sentinel;
|
||||
r->addr_rbtree.insert = ngx_rbtree_insert_value;
|
||||
|
||||
r->name_resend_queue.prev = &r->name_resend_queue;
|
||||
r->name_resend_queue.next = &r->name_resend_queue;
|
||||
ngx_queue_init(&r->name_resend_queue);
|
||||
ngx_queue_init(&r->addr_resend_queue);
|
||||
|
||||
r->addr_resend_queue.prev = &r->addr_resend_queue;
|
||||
r->addr_resend_queue.next = &r->addr_resend_queue;
|
||||
|
||||
r->name_expire_queue.prev = &r->name_expire_queue;
|
||||
r->name_expire_queue.next = &r->name_expire_queue;
|
||||
|
||||
r->addr_expire_queue.prev = &r->addr_expire_queue;
|
||||
r->addr_expire_queue.next = &r->addr_expire_queue;
|
||||
ngx_queue_init(&r->name_expire_queue);
|
||||
ngx_queue_init(&r->addr_expire_queue);
|
||||
|
||||
r->event->handler = ngx_resolver_resend_handler;
|
||||
r->event->data = r;
|
||||
|
Loading…
Reference in New Issue
Block a user