Fix missing string formatting for the lock key
The lack of proper formatting here leads to unnecessary lock contention in high concurrency setups
This commit is contained in:
parent
9f0867488e
commit
b3119e7b7e
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "oxbow"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
edition = "2021"
|
||||
keywords = ["deltalake", "parquet", "lambda", "delta"]
|
||||
homepage = "https://github.com/buoyant-data/oxbow"
|
||||
|
|
|
@ -74,7 +74,7 @@ async fn func<'a>(event: LambdaEvent<SqsEvent>) -> Result<Value, Error> {
|
|||
// when locking in DynamoDb.
|
||||
storage_options.insert(
|
||||
"DYNAMO_LOCK_PARTITION_KEY_VALUE".into(),
|
||||
"{table_name}:delta".into(),
|
||||
format!("{table_name}:delta"),
|
||||
);
|
||||
let lock_options = dynamodb_lock::DynamoDbOptions {
|
||||
lease_duration: 60,
|
||||
|
|
Loading…
Reference in New Issue