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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d86e69280d50aad838ac63b91dccd9a89d9bcdccafa13f24f053320cadd72be
4
- data.tar.gz: ef7a1542c2336bd1e5b8557b4edbedb522d2451d94c3eae887ee2be79d13c500
3
+ metadata.gz: 219cdaeda983bb25f35394cea48f426917006b3934cf673a256423c049602120
4
+ data.tar.gz: dda6c3c9607a451a9447d19c340f5c06c9baa8321f0e39838d6fb2be026e8cb9
5
5
  SHA512:
6
- metadata.gz: f06eaf7f8fa92f2e042ade8a7bc9737ea13770060c7a9f4a145aa849bc679716a83780d215bea5ce6b9e1f1a785a92651f2b64f64adeb8658ca3baf3d37c7c1e
7
- data.tar.gz: 0c8e0a8a9a26a0c21e7bc2a8a2311377a1ebc105e0d5f2dd0155faf7c735672a4df3a3467154b38b37220528bb3f9834fb5307dbdbe0abb0bbd054ed5a3a8c4b
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.add_status!(headers, status: Protocol::GRPC::Status::OK)
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.add_status!(headers, status: Protocol::GRPC::Status::DEADLINE_EXCEEDED, message: "Deadline exceeded")
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
 
@@ -7,7 +7,7 @@
7
7
  module Async
8
8
  # @namespace
9
9
  module GRPC
10
- VERSION = "0.5.0"
10
+ VERSION = "0.5.1"
11
11
  end
12
12
  end
13
13
 
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
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.5.1
4
+
5
+ - Better error logging on timeout.
6
+
3
7
  ## v0.5.0
4
8
 
5
9
  - Fix handling of timeouts/deadlines.
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.0
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: '0.5'
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: '0.5'
68
+ version: 0.11.0
69
69
  executables: []
70
70
  extensions: []
71
71
  extra_rdoc_files: []
metadata.gz.sig CHANGED
@@ -1,3 +1 @@
1
- ,7��e��o�)
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�Ҿ8 i�P�|���_��Є� v��D<�]�Gd�ˣQE���?n��TM(��<��O�r�|v�W�90q��C%���6/^8F�θ5��