cipherstash-client 0.16.0.2.gcf9436f → 0.16.0.3.gd3383f4

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: 6983c7743946ad84541e25bb5919f67560d3f984a68612c12e62bf1db56131a5
4
- data.tar.gz: 6b364aa3dc273ed716cbb551e20124b9300bd5256d801b2857abe2d939d94a93
3
+ metadata.gz: a9856b6ff30fc93afe5c153612fde53a2c5a398a71972c032379392830580fee
4
+ data.tar.gz: 1775f77b64e9c342d37c965408ebbc12891ae41b4912b8461cb2e36b4a317ed5
5
5
  SHA512:
6
- metadata.gz: df63dacef0a3e107515574155d8f4c471fe5150c7727d385fb9d35959def91ace9cab67c77d44ef08fd82b7b21cbef9e124928636729d248d7398b89b582cf7a
7
- data.tar.gz: 185d42b9b21055c9d7f862aad6cf345c7fc314b863b55eb5b75cdfbefa03334b7d077a9dce496f3b88c0a1c904f71df29ca4bb3446c150ac793679b2ed006fd5
6
+ metadata.gz: bc5fed7593aa12337f623a72a5591f4088dc44490c77e957dffe1277ea7dbf0b0f22d46838a2187c7a175e9b81ba7589679115e2c94063a21c950a9b44162b99
7
+ data.tar.gz: d0323cff12682269ca9d10adb68f793222799fc3458ac4150cacfec956c6f7ca5d4554fa9a0d8f760cb1a8d128da26b42df7d4fbf51a16013088a89744d08687
@@ -271,20 +271,21 @@ module CipherStash
271
271
  requests = [[begin_request], records].lazy.flat_map { |x| x }
272
272
 
273
273
  num_inserted = 0
274
+ @logger.debug("Cipherstash::Client::RPC#put_stream") { "Start 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
279
-
280
- raise_if_error(res)
281
- puts "#### Response from server ######"
282
- p res.numInserted
281
+ @logger.info("Cipherstash::Client::RPC#put_stream") { "#{res.numInserted} records inserted." }
283
282
 
284
283
  num_inserted = res.numInserted
285
284
  end
286
285
  end
287
286
 
287
+ @logger.info("Cipherstash::Client::RPC#put_stream") { "Streaming upsert complete. Number of records inserted: #{res.numInserted}" }
288
+
288
289
  num_inserted
289
290
  rescue ::GRPC::NotFound
290
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.gcf9436f
4
+ version: 0.16.0.3.gd3383f4
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-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk-core