Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit cc64d9d

Browse files
will-tongvinjiang
authored andcommitted
Revert "Add thread safe storage credential update"
This reverts commit 4ce701a.
1 parent 818813e commit cc64d9d

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

Microsoft.WindowsAzure.Storage/includes/was/service_client.h

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,22 +74,11 @@ namespace azure { namespace storage {
7474
/// Gets the storage account credentials for the service client.
7575
/// </summary>
7676
/// <returns>The storage account credentials for the service client.</returns>
77-
const azure::storage::storage_credentials& credentials()
77+
const azure::storage::storage_credentials& credentials() const
7878
{
79-
pplx::extensibility::scoped_read_lock_t guard(m_mutex);
8079
return m_credentials;
8180
}
8281

83-
/// <summary>
84-
/// Sets the storage credentials to use for the service client.
85-
/// </summary>
86-
/// <param name="credentials">The <see cref="azure::storage::storage_credentials" /> to use.</param>
87-
void set_storage_credentials(azure::storage::storage_credentials credentials)
88-
{
89-
pplx::extensibility::scoped_rw_lock_t guard(m_mutex);
90-
m_credentials = std::move(credentials);
91-
}
92-
9382
/// <summary>
9483
/// Gets the authentication scheme to use to sign HTTP requests for the service client.
9584
/// </summary>
@@ -161,7 +150,6 @@ namespace azure { namespace storage {
161150

162151
private:
163152

164-
pplx::extensibility::reader_writer_lock_t m_mutex;
165153
storage_uri m_base_uri;
166154
azure::storage::storage_credentials m_credentials;
167155
azure::storage::authentication_scheme m_authentication_scheme;

0 commit comments

Comments
 (0)