Skip to content

Commit

Permalink
replace ExtactValue with GetValue (#1984)
Browse files Browse the repository at this point in the history
replace ExtactValue with GetValue
  • Loading branch information
tpashkin committed Sep 23, 2024
1 parent 942fad0 commit 1f9803c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cloud/blockstore/libs/endpoint_proxy/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,8 @@ struct TServer: IEndpointProxyServer
TDuration::Days(1)); // timeout
}

auto status = ep.NbdDevice->Start().ExtractValue();
auto future = ep.NbdDevice->Start();
const auto& status = future.GetValue();
if (HasError(status)) {
STORAGE_ERROR(request.ShortDebugString().Quote()
<< " - Unable to start nbd device: "
Expand Down
3 changes: 2 additions & 1 deletion cloud/blockstore/tools/nbd/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ void TBootstrap::Start()
Options->ConnectDevice,
Options->ConnectionTimeout);
}
auto status = NbdDevice->Start().ExtractValue();
auto future = NbdDevice->Start();
const auto& status = future.GetValue();
if (HasError(status)) {
ythrow yexception() << status.GetMessage();
}
Expand Down

0 comments on commit 1f9803c

Please sign in to comment.