cipherstash-client 0.16.0.2.g283c825 → 0.16.0.2.g52214e3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 871993b9c3964b75f5a9fd615d37716c4baa3f6c5619934999f4d1c122d6e17d
4
- data.tar.gz: 8e78b0c42059405a18d40d4d410e02135e119b2e8b0f1c58fd08bd5615a68e89
3
+ metadata.gz: 62cbbc2430016bf666b72c8830dff53ed8cbd91b47ff90b8ca41e5986d2ba84c
4
+ data.tar.gz: 93c69e159f141379ffd32a9b81d4979701ab7c02de1951de72e8f864a6ba3978
5
5
  SHA512:
6
- metadata.gz: 0b0414e50e1bc7672a1a6082f2af62b2ac308211ac8705b914188bf309a7c477857b4e35b01ffd824a6ab8c75a876678501044e037bc57ac7071dd46b761b5d4
7
- data.tar.gz: 9b2fe7e90d717e4f72c1e9a54ef9462f3902c639d2754b96a0b4caebbe61841f82822ce84036c9d8e8a3e103a96fdf4c9b9e29f2dcda9e6538b0f78200baf675
6
+ metadata.gz: 38511050d3bbcbc5a62622da5470e58f18bbd81d93a0f48ff2a44d78be9487d61d41ed593a24005c2e2ce33099a9bf1cd9b95d0094b733703cc9cc9c3c663162
7
+ data.tar.gz: 48e9d6fb72487b3b3b3d8fe547131f399e2795283868f1df749a750b4d60580ac84919f2ca852300eba084bbccee3fbb7babf97d03bb03e52ff0b6e92b26df1f
@@ -271,22 +271,21 @@ module CipherStash
271
271
  requests = [[begin_request], records].lazy.flat_map { |x| x }
272
272
 
273
273
  num_inserted = 0
274
+ @logger.info("Cipherstash::Client::RPC#put_stream") { "Starting streaming upsert of documents..." }
275
+
274
276
  @metrics.measure_rpc_call("putStream") do
275
277
  stub.put_stream_bi_direction(requests, metadata: rpc_headers).each do |res|
276
- puts "######"
277
278
  unless res.is_a?(Documents::StreamingPutReply)
278
279
  raise Error::StreamingPutFailure, "expected Documents::StreamingPutReply response, got #{res.class} instead"
279
280
  end
280
- puts "!!!!! res !!!!!!!"
281
- p res
282
- raise_if_error(res)
283
- puts "#### Response from server ######"
284
- p res.numInserted
281
+ @logger.info("Cipherstash::Client::RPC#put_stream") { "#{res.numInserted} records inserted." }
285
282
 
286
283
  num_inserted = res.numInserted
287
284
  end
288
285
  end
289
286
 
287
+ @logger.info("Cipherstash::Client::RPC#put_stream") { "Streaming upsert complete. Number of records inserted: #{res.numInserted}" }
288
+
290
289
  num_inserted
291
290
  rescue ::GRPC::NotFound
292
291
  raise Error::RecordPutFailure, "Collection '#{collection.name}' not found"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cipherstash-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0.2.g283c825
4
+ version: 0.16.0.2.g52214e3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Palmer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-10-06 00:00:00.000000000 Z
12
+ date: 2022-10-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk-core