Skip to content

Commit 6ada0c0

Browse files
authored
Merge pull request #4 from Azure-Samples/seesharprun-patch-1
Fix bug
2 parents 45e5804 + b76fc6d commit 6ada0c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/cosmos.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ where
2626
};
2727
callback("Client created".to_string());
2828

29-
let database = client.database(&database_name);
29+
let database = client.database_client(&database_name);
3030
callback(format!("Get database:\t {}", database_name));
3131

32-
let container = database.container(&container_name);
32+
let container = database.container_client(&container_name);
3333
callback(format!("Get container:\t {}", container_name));
3434

3535
{
@@ -163,4 +163,4 @@ where
163163
}
164164

165165
callback("Current Status:\tStopping...".to_string());
166-
}
166+
}

0 commit comments

Comments
 (0)