Skip to content

Commit

Permalink
Properly test is_worker.
Browse files Browse the repository at this point in the history
  • Loading branch information
raxoft committed Dec 9, 2022
1 parent 53bcc1e commit e9bd0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/iodine/iodine.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ static VALUE iodine_master_is(VALUE self) {
* a single process mode (the master is also a worker), `false` otherwise.
*/
static VALUE iodine_worker_is(VALUE self) {
return fio_is_master() ? Qtrue : Qfalse;
return fio_is_worker() ? Qtrue : Qfalse;
}

/**
Expand Down

0 comments on commit e9bd0f1

Please sign in to comment.