Optimized application type handling.

This commit is contained in:
Valentin Bartenev
2017-10-10 19:15:08 +03:00
parent 93438a0d9e
commit e4bea2c75c
6 changed files with 50 additions and 58 deletions

View File

@@ -90,7 +90,7 @@ nxt_runtime_create(nxt_task_t *task)
/* Should not fail. */
lang = nxt_array_add(rt->languages);
lang->type = (nxt_str_t) nxt_string("go");
lang->type = NXT_APP_GO;
lang->version = (u_char *) "";
lang->file = NULL;
lang->module = &nxt_go_module;