cipherstash-client 0.16.0.2.ge249d46 → 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: 010d6428d07c3a4050f7932a42f2c6420ec7599229f9b08df8a8b5a2ab4b905f
4
- data.tar.gz: beb4a805237ee4ac142042328442dd785245c087ac77799f4fefa3a2137110a6
3
+ metadata.gz: a9856b6ff30fc93afe5c153612fde53a2c5a398a71972c032379392830580fee
4
+ data.tar.gz: 1775f77b64e9c342d37c965408ebbc12891ae41b4912b8461cb2e36b4a317ed5
5
5
  SHA512:
6
- metadata.gz: 83cdffb0a2255ee0ab919b1971b22fb91f8c1ca25bee176447b47a72fa11cb6ba4a35e54eae39b1090d11ba81b957888f7bc238cf6659564891cc817c5f7c58d
7
- data.tar.gz: d5fd46e3b050e04e6a0b042306a1405f97022cdd0a626bd6078bd5ebd0f974de2071bc575d1d438a4ef2136f52b58a7958b44789ca1d6bfd260f4bf60a5a3955
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
281
+ @logger.info("Cipherstash::Client::RPC#put_stream") { "#{res.numInserted} records inserted." }
279
282
 
280
- raise_if_error(res)
281
- puts "#### Response from server ######"
282
- p res.num_inserted
283
-
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.ge249d46
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