mirror of https://github.com/reiseburo/hermann
Use RSTRING_LEN instead of _LENINT which isn't present on 1.8.7
Fixes #30
This commit is contained in:
parent
5cf9f352e1
commit
77248706e8
|
@ -542,7 +542,7 @@ static VALUE producer_push_single(VALUE self, VALUE message, VALUE result) {
|
|||
producerConfig->partition,
|
||||
RD_KAFKA_MSG_F_COPY,
|
||||
rb_string_value_cstr(&message),
|
||||
RSTRING_LENINT(message),
|
||||
RSTRING_LEN(message),
|
||||
NULL,
|
||||
0,
|
||||
delivery_ctx)) {
|
||||
|
|
Loading…
Reference in New Issue