cipherstash-client 0.16.0.2.g291acd0 → 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: 26c0ec4a8db6538e5c7d2914338ae490ee5917c470c745c8a2cf70054c86aa85
4
- data.tar.gz: c682f58b300b1362a7968de9333253d859d440defd1ce48bbabf985a19e618eb
3
+ metadata.gz: 62cbbc2430016bf666b72c8830dff53ed8cbd91b47ff90b8ca41e5986d2ba84c
4
+ data.tar.gz: 93c69e159f141379ffd32a9b81d4979701ab7c02de1951de72e8f864a6ba3978
5
5
  SHA512:
6
- metadata.gz: fe55d60ffe454868a3036101bc225c20eedad03f3700699b62acea2b254da575f47152594d14d636eac708e2c451fe49af333e7fad46d1ae3b5d3bac3a3d8c34
7
- data.tar.gz: 251d2c8985209e662e82c99a240054d477ce783bfb53d84f81de26997a24dda13669ee7b89707188c61317959719b7d58b9a0262b4b736fa36d06dad8374b450
6
+ metadata.gz: 38511050d3bbcbc5a62622da5470e58f18bbd81d93a0f48ff2a44d78be9487d61d41ed593a24005c2e2ce33099a9bf1cd9b95d0094b733703cc9cc9c3c663162
7
+ data.tar.gz: 48e9d6fb72487b3b3b3d8fe547131f399e2795283868f1df749a750b4d60580ac84919f2ca852300eba084bbccee3fbb7babf97d03bb03e52ff0b6e92b26df1f
@@ -271,19 +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
278
  unless res.is_a?(Documents::StreamingPutReply)
277
279
  raise Error::StreamingPutFailure, "expected Documents::StreamingPutReply response, got #{res.class} instead"
278
280
  end
281
+ @logger.info("Cipherstash::Client::RPC#put_stream") { "#{res.numInserted} records inserted." }
279
282
 
280
- raise_if_error(res)
281
- puts "##### response #######"
282
- p res.numInserted
283
283
  num_inserted = res.numInserted
284
284
  end
285
285
  end
286
286
 
287
+ @logger.info("Cipherstash::Client::RPC#put_stream") { "Streaming upsert complete. Number of records inserted: #{res.numInserted}" }
288
+
287
289
  num_inserted
288
290
  rescue ::GRPC::NotFound
289
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.g291acd0
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-09-29 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