Added required comment #10576

This commit is contained in:
Alexey Milovidov 2020-05-03 01:34:50 +03:00
parent a235533d5f
commit abe40e2127
2 changed files with 5 additions and 4 deletions

View File

@ -83,7 +83,8 @@ namespace S3
return ret;
}
std::shared_ptr<Aws::S3::S3Client> ClientFactory::create(
/// This method is not static because it requires ClientFactory to be initialized.
std::shared_ptr<Aws::S3::S3Client> ClientFactory::create( // NOLINT
const String & endpoint,
const String & access_key_id,
const String & secret_access_key)
@ -95,7 +96,7 @@ namespace S3
return create(cfg, access_key_id, secret_access_key);
}
std::shared_ptr<Aws::S3::S3Client> ClientFactory::create(
std::shared_ptr<Aws::S3::S3Client> ClientFactory::create( // NOLINT
Aws::Client::ClientConfiguration & cfg,
const String & access_key_id,
const String & secret_access_key)

View File

@ -23,12 +23,12 @@ public:
static ClientFactory & instance();
static std::shared_ptr<Aws::S3::S3Client> create(
std::shared_ptr<Aws::S3::S3Client> create(
const String & endpoint,
const String & access_key_id,
const String & secret_access_key);
static std::shared_ptr<Aws::S3::S3Client> create(
std::shared_ptr<Aws::S3::S3Client> create(
Aws::Client::ClientConfiguration & cfg,
const String & access_key_id,
const String & secret_access_key);