Skip to content

Commit 893772c

Browse files
ewertonsryanwinter
andauthored
[Rust][Services] Split leased_lock client (ADR 20) and add lease & lock auto-renewal (#759)
According to ADR 20 this leased lock client should be split into two layers, lease and lock clients. The lease client will have the bulk of logic for acquiring, renewing and releasing a key. The lock layer will present the expected semantics for locking operations. Additionally auto-renewal of leases was not yet implemented in the leased lock client. included in this PR is the logic to perform the auto-renewal of leases/locks. --------- Co-authored-by: Ryan Winter <[email protected]>
1 parent 20e46b8 commit 893772c

File tree

12 files changed

+1603
-1216
lines changed

12 files changed

+1603
-1216
lines changed

rust/azure_iot_operations_services/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ derive_builder.workspace = true
3434
log.workspace = true
3535
thiserror.workspace = true
3636
tokio.workspace = true
37+
tokio-util.workspace = true
3738
data-encoding = "2.5"
3839
serde = { version = "1.0", features = ["derive"], optional = true }
3940
serde_json = { version = "1.0.105", optional = true }
@@ -60,7 +61,7 @@ name = "schema_registry_client"
6061
required-features = ["schema_registry"]
6162

6263
[[example]]
63-
name = "leased_lock_client"
64+
name = "lock_client"
6465
required-features = ["leased_lock"]
6566

6667
[package.metadata.docs.rs]

rust/azure_iot_operations_services/examples/leased_lock_client.rs

Lines changed: 0 additions & 359 deletions
This file was deleted.

0 commit comments

Comments
 (0)