| 597 | } |
| 598 | |
| 599 | Result<std::shared_ptr<S3FileSystem>> MakeNewFileSystem( |
| 600 | io::IOContext io_context = io::default_io_context()) { |
| 601 | options_.ConfigureAccessKey(minio_->access_key(), minio_->secret_key()); |
| 602 | options_.scheme = minio_->scheme(); |
| 603 | options_.endpoint_override = minio_->connect_string(); |
| 604 | if (!options_.retry_strategy) { |
| 605 | options_.retry_strategy = std::make_shared<ShortRetryStrategy>(); |
| 606 | } |
| 607 | return S3FileSystem::Make(options_, io_context); |
| 608 | } |
| 609 | |
| 610 | void MakeFileSystem() { ASSERT_OK_AND_ASSIGN(fs_, MakeNewFileSystem()); } |
| 611 |
nothing calls this directly
no test coverage detected