fix(aws): initialise aws in a proactor (#1818)

* fix(aws): initialise aws in a proactor

* chore: update helio
This commit is contained in:
Andy Dunstall 2023-09-08 09:07:08 +01:00 committed by GitHub
parent 29e154923f
commit 8b5635eae8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

2
helio

@ -1 +1 @@
Subproject commit bb725aa5812183809047f4309b9aee40de64b7bf
Subproject commit 220c258a6754ea65e6dc06d77e0f22d7b07835ba

View file

@ -430,7 +430,8 @@ void ServerFamily::Init(util::AcceptServer* acceptor, std::vector<facade::Listen
string flag_dir = GetFlag(FLAGS_dir);
if (IsCloudPath(flag_dir)) {
aws_ = make_unique<cloud::AWS>("s3");
if (auto ec = aws_->Init(); ec) {
auto ec = shard_set->pool()->GetNextProactor()->Await([&] { return aws_->Init(); });
if (ec) {
LOG(FATAL) << "Failed to initialize AWS " << ec;
}
}