Skip to content

Commit

Permalink
ractor safe
Browse files Browse the repository at this point in the history
remove unnecessary code
  • Loading branch information
pocari committed Apr 12, 2021
1 parent 6ceb82b commit 240d42d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/jaro_winkler/jaro_winkler.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ VALUE distance(size_t argc, VALUE *argv, VALUE self,
Options *));

void Init_jaro_winkler_ext(void) {

#ifdef HAVE_RB_EXT_RACTOR_SAFE
rb_ext_ractor_safe(true);
#endif

rb_mJaroWinkler = rb_define_module("JaroWinkler");
rb_eError = rb_define_class_under(rb_mJaroWinkler, "Error", rb_eRuntimeError);
rb_eInvalidWeightError =
Expand Down

0 comments on commit 240d42d

Please sign in to comment.