mirror of https://github.com/dapr/rust-sdk.git
chore(lint): fmt
Signed-off-by: Mike Nguyen <hey@mike.ee>
This commit is contained in:
parent
0183be5baa
commit
597aa46f0e
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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!");
|
||||
|
||||
|
|
Loading…
Reference in New Issue