grpc 1.74.0-x86_64-linux-gnu → 1.74.1-x86_64-linux-gnu
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18f0761b4c51fdb64ab546109db88cccea346cd84d96c23bb502de4529f5b8b1
|
4
|
+
data.tar.gz: 5d7e1532502c688ca873309d732db920aa6cfc80459dfc8aa58dd294ee19dbdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d677b04b0ff2c6fb8301e1cd4321f1f6fb5ece9696dd81fd0026d3092fd785c9842c65d1fd15af199e29a1f3ea4f24ee475ef91919001f96ec96e56c68da469
|
7
|
+
data.tar.gz: e04650f22aa9514415400b79cf2547bb7ee179867c67aca8859aad0d1dde645869d2708b2bb58c8c19762a7a260c088f5a3686ce20229727c02391f1d1cf72db
|
@@ -62,6 +62,7 @@ static VALUE grpc_rb_cChannelArgs;
|
|
62
62
|
/* grpc_rb_channel wraps a grpc_channel. */
|
63
63
|
typedef struct grpc_rb_channel {
|
64
64
|
grpc_channel* channel;
|
65
|
+
VALUE mark;
|
65
66
|
} grpc_rb_channel;
|
66
67
|
|
67
68
|
static void grpc_rb_channel_free(void* p) {
|
@@ -76,13 +77,19 @@ static void grpc_rb_channel_free(void* p) {
|
|
76
77
|
xfree(p);
|
77
78
|
}
|
78
79
|
|
79
|
-
static
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
80
|
+
static void grpc_rb_channel_mark(void* p) {
|
81
|
+
rb_gc_mark(((grpc_rb_channel*)p)->mark);
|
82
|
+
}
|
83
|
+
|
84
|
+
static rb_data_type_t grpc_channel_data_type = {"grpc_channel",
|
85
|
+
{grpc_rb_channel_mark,
|
86
|
+
grpc_rb_channel_free,
|
87
|
+
GRPC_RB_MEMSIZE_UNAVAILABLE,
|
88
|
+
{NULL, NULL}},
|
89
|
+
NULL,
|
90
|
+
NULL,
|
84
91
|
#ifdef RUBY_TYPED_FREE_IMMEDIATELY
|
85
|
-
|
92
|
+
RUBY_TYPED_FREE_IMMEDIATELY
|
86
93
|
#endif
|
87
94
|
};
|
88
95
|
|
@@ -91,6 +98,7 @@ static VALUE grpc_rb_channel_alloc(VALUE cls) {
|
|
91
98
|
grpc_ruby_init();
|
92
99
|
grpc_rb_channel* wrapper = ALLOC(grpc_rb_channel);
|
93
100
|
wrapper->channel = NULL;
|
101
|
+
wrapper->mark = Qnil;
|
94
102
|
return TypedData_Wrap_Struct(cls, &grpc_channel_data_type, wrapper);
|
95
103
|
}
|
96
104
|
|
@@ -139,6 +147,7 @@ static VALUE grpc_rb_channel_init(int argc, VALUE* argv, VALUE self) {
|
|
139
147
|
return Qnil;
|
140
148
|
}
|
141
149
|
wrapper->channel = grpc_channel_create(target_chars, creds, &channel_args);
|
150
|
+
wrapper->mark = rb_credentials;
|
142
151
|
}
|
143
152
|
grpc_rb_channel_args_destroy(&channel_args);
|
144
153
|
if (wrapper->channel == NULL) {
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|