File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -154,13 +154,14 @@ async fn evaluate(Json(req): Json<EvaluateRequest>) -> Result<Json<EvaluateRespo
154
154
155
155
async fn compile ( Json ( req) : Json < CompileRequest > ) -> Result < Json < CompileResponse > > {
156
156
if cfg ! ( new) {
157
- let mut coordinator = orchestrator:: coordinator:: Coordinator :: new_docker ( ) ;
158
- let container = coordinator. allocate ( ) . unwrap ( ) ;
157
+ let coordinator = orchestrator:: coordinator:: Coordinator :: new_docker ( ) . unwrap ( ) ;
159
158
160
159
let req = req. try_into ( ) . unwrap ( ) ;
161
- let resp = container . compile ( req) . await . unwrap ( ) ;
160
+ let resp = coordinator . compile ( req) . await . unwrap ( ) ;
162
161
let resp = resp. into ( ) ;
163
162
163
+ coordinator. shutdown ( ) . await . unwrap ( ) ;
164
+
164
165
Ok ( Json ( resp) )
165
166
} else {
166
167
with_sandbox (
You can’t perform that action at this time.
0 commit comments