We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
set_current_dir
1 parent 8cace63 commit a4039b7Copy full SHA for a4039b7
3 files changed
src/endpoint/root.rs
@@ -1,5 +1,7 @@
1
//! Endpoint root.
2
3
+use std::env::set_current_dir;
4
+
5
use api_framework::{
6
framework::{
7
StateError, StateResult,
@@ -87,10 +89,7 @@ async fn post_transaction(
87
89
service: ServiceConfig,
88
90
) -> StateResult<()> {
91
async fn inner(cx: &QueuedAsyncFrameworkContext, service: &ServiceConfig) -> StateResult<()> {
- // cd to workspace
- transactions::sys::cd(&DOCKER_WORKSPACE_DIR)
92
- .await
93
- .map_err(|_| StateError::Retry)?;
+ set_current_dir(&*DOCKER_WORKSPACE_DIR).map_err(|_| StateError::Retry)?;
94
95
// login to docker
96
transactions::docker::login()
src/transactions/mod.rs
@@ -1,2 +1 @@
pub mod docker;
-pub mod sys;
src/transactions/sys.rs
0 commit comments