async-grpc 0.5.0 → 0.5.1
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/grpc/dispatcher.rb +3 -3
- data/lib/async/grpc/version.rb +1 -1
- data/readme.md +4 -0
- data/releases.md +4 -0
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +1 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 219cdaeda983bb25f35394cea48f426917006b3934cf673a256423c049602120
|
|
4
|
+
data.tar.gz: dda6c3c9607a451a9447d19c340f5c06c9baa8321f0e39838d6fb2be026e8cb9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea120b857416b034f83665941f130040c5fa16de13f87889f5020121172250b221447d2284952143a6baca305ad42d67be6281673cb3a1bb6aea2a0bb0511b38
|
|
7
|
+
data.tar.gz: 340a5ba4fe97718e80047df7684aa0e5c7e07f900d2b2d5d7e8282e4bd28f84558502a9e010ddb19ab474bae138ee7019f95e8e8c91e21309b4ff8651d0b17b0
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -59,7 +59,7 @@ module Async
|
|
|
59
59
|
if headers = call.response&.headers
|
|
60
60
|
# Only add OK status if grpc-status hasn't been set by the handler:
|
|
61
61
|
unless headers["grpc-status"]
|
|
62
|
-
Protocol::GRPC::Metadata.
|
|
62
|
+
Protocol::GRPC::Metadata.assign_status!(headers, status: Protocol::GRPC::Status::OK)
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
end
|
|
@@ -72,14 +72,14 @@ module Async
|
|
|
72
72
|
else
|
|
73
73
|
invoke_service(service, handler_method, input, output, call)
|
|
74
74
|
end
|
|
75
|
-
rescue Async::TimeoutError
|
|
75
|
+
rescue Async::TimeoutError => error
|
|
76
76
|
# Close input and output streams:
|
|
77
77
|
input.close
|
|
78
78
|
output.close_write unless output.closed?
|
|
79
79
|
|
|
80
80
|
# Set DEADLINE_EXCEEDED status in trailers:
|
|
81
81
|
if headers = call.response&.headers
|
|
82
|
-
Protocol::GRPC::Metadata.
|
|
82
|
+
Protocol::GRPC::Metadata.assign_status!(headers, status: Protocol::GRPC::Status::DEADLINE_EXCEEDED, message: "Deadline exceeded!", error: error)
|
|
83
83
|
end
|
|
84
84
|
end
|
|
85
85
|
|
data/lib/async/grpc/version.rb
CHANGED
data/readme.md
CHANGED
|
@@ -24,6 +24,10 @@ Please see the [project documentation](https://socketry.github.io/async-grpc/) f
|
|
|
24
24
|
|
|
25
25
|
Please see the [project releases](https://socketry.github.io/async-grpc/releases/index) for all releases.
|
|
26
26
|
|
|
27
|
+
### v0.5.1
|
|
28
|
+
|
|
29
|
+
- Better error logging on timeout.
|
|
30
|
+
|
|
27
31
|
### v0.5.0
|
|
28
32
|
|
|
29
33
|
- Fix handling of timeouts/deadlines.
|
data/releases.md
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: async-grpc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
@@ -58,14 +58,14 @@ dependencies:
|
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version:
|
|
61
|
+
version: 0.11.0
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version:
|
|
68
|
+
version: 0.11.0
|
|
69
69
|
executables: []
|
|
70
70
|
extensions: []
|
|
71
71
|
extra_rdoc_files: []
|
metadata.gz.sig
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
��^U�V�i���\/k��w2dy�)��>H�������Ae|t�4
|
|
3
|
-
�^U�B�N_�Ӓ�1������o�}���-�F�B��eSf6-�>E'K6d�H�����i[�]5I]�}�Y���猸N]�h��cj��z�#�+�&���'��<})�
|
|
1
|
+
JÈ��M�@���|F��`L��)-ms0�DAyh*G_`}Bd8KO|P�8��˴�� ,~,�4�h_>]\[��5�Oz '�5��&t�K�f�+r�t��=7N�!v��n���=���RRr�Z =�-��eȂ�sQK���ǽ;;��ˉ!����NV|�8sL*�s�Le-����g��MD..0 ��W=�M%o�b�ܰ�<J���d�������X�:��>��m�U;�J�߆�z�]���NH��M`��A<�5�����Y�^G�ٟ��|�sHi�Ҿ8i�P�|���_��Є� v��D<�]�Gd�ˣQE���?n��TM(��<��O�r�|v�W�90q��C%���6/^8F�θ5��
|