Page MenuHomePhabricator

D4460.id14358.diff
No OneTemporary

D4460.id14358.diff

diff --git a/services/identity/src/database.rs b/services/identity/src/database.rs
--- a/services/identity/src/database.rs
+++ b/services/identity/src/database.rs
@@ -1,5 +1,6 @@
use std::collections::HashMap;
use std::fmt::{Display, Formatter, Result as FmtResult};
+use std::sync::Arc;
use aws_sdk_dynamodb::model::AttributeValue;
use aws_sdk_dynamodb::output::{GetItemOutput, PutItemOutput};
@@ -23,13 +24,13 @@
#[derive(Clone)]
pub struct DatabaseClient {
- client: Client,
+ client: Arc<Client>,
}
impl DatabaseClient {
pub fn new(aws_config: &SdkConfig) -> Self {
DatabaseClient {
- client: Client::new(aws_config),
+ client: Arc::new(Client::new(aws_config)),
}
}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 30, 4:52 AM (20 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2599107
Default Alt Text
D4460.id14358.diff (716 B)

Event Timeline