Fix bug where I initialized the worker wrong.
This commit is contained in:
@@ -27,7 +27,7 @@ int main(int argc, char **argv) {
|
||||
for (int i = 0; i < worker_count; i++) {
|
||||
char *path = strtok(argv[i+1], ":");
|
||||
worker_map[i].name = strtok(NULL, ":");
|
||||
zactor_new(worker_map[i].worker, path);
|
||||
worker_map[i].worker = zactor_new(worker_task, path);
|
||||
}
|
||||
|
||||
char *ep = endpoint();
|
||||
|
||||
Reference in New Issue
Block a user