Closed johnchapin closed 9 years ago
This fixes an error I was seeing in trying to return the consumed capacity from batch operations:
=> (faraday/batch-get-item options {:my_table {:prim-kvs {:my_key ["foo" "bar"]}}} {:return-cc? true})) CompilerException java.lang.ClassCastException: com.amazonaws.internal.ListWithAutoConstructFlag cannot be cast to com.amazonaws.services.dynamodbv2.model.ConsumedCapacity, compiling:(form-init4303440963934561960.clj:1:12)
The patch adds a batch-cc-units method which is called from the as-map implementations for BatchGetItemResult and BatchWriteItemResult.
batch-cc-units
as-map
BatchGetItemResult
BatchWriteItemResult
Thanks John, looks good!
This fixes an error I was seeing in trying to return the consumed capacity from batch operations:
The patch adds a
batch-cc-units
method which is called from theas-map
implementations forBatchGetItemResult
andBatchWriteItemResult
.