chore(lint): fmt

Signed-off-by: Mike Nguyen <hey@mike.ee>
This commit is contained in:
Mike Nguyen 2024-11-25 08:37:07 +00:00
parent 0183be5baa
commit 597aa46f0e
No known key found for this signature in database
GPG Key ID: ACED13988580D50E
2 changed files with 5 additions and 4 deletions

View File

@ -216,12 +216,12 @@ impl<T: DaprInterface> Client<T> {
value: Vec<u8>,
etag: Option<Etag>,
metadata: Option<HashMap<String, String>>,
options: Option<StateOptions>,
options: Option<StateOptions>,
) -> Result<(), Error>
where
S: Into<String>,
{
let states = vec![StateItem{
let states = vec![StateItem {
key: key.into(),
value,
etag,
@ -247,7 +247,6 @@ impl<T: DaprInterface> Client<T> {
.save_state(SaveStateRequest {
store_name: store_name.into(),
states: items.into(),
})
.await
}

View File

@ -17,7 +17,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let store_name = String::from("statestore");
// save key-value pair in the state store
client.save_state(store_name, key, val, None, None, None).await?;
client
.save_state(store_name, key, val, None, None, None)
.await?;
println!("Successfully saved!");