mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
fix(aws): initialise aws in a proactor (#1818)
* fix(aws): initialise aws in a proactor * chore: update helio
This commit is contained in:
parent
29e154923f
commit
8b5635eae8
2 changed files with 3 additions and 2 deletions
2
helio
2
helio
|
@ -1 +1 @@
|
|||
Subproject commit bb725aa5812183809047f4309b9aee40de64b7bf
|
||||
Subproject commit 220c258a6754ea65e6dc06d77e0f22d7b07835ba
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue