Skip to content

Commit 1883dab

Browse files
committed
Changes based on upstream
1 parent 6aaaddd commit 1883dab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cli/ops/compiler.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,17 +169,17 @@ struct FetchRemoteAssetArgs {
169169
}
170170

171171
fn op_fetch_remote_asset(
172-
state: &ThreadSafeState,
172+
state: &State,
173173
args: Value,
174174
_data: Option<ZeroCopyBuf>,
175175
) -> Result<JsonOp, ErrBox> {
176176
let args: FetchRemoteAssetArgs = serde_json::from_value(args)?;
177177
debug!("args.name: {}", args.name);
178+
let global_state = state.borrow().global_state.clone();
178179

179180
let future: Pin<Box<dyn Future<Output = Result<Value, ErrBox>>>> =
180181
Box::pin(async move {
181-
let source_file = state
182-
.global_state
182+
let source_file = global_state
183183
.file_fetcher
184184
.fetch_remote_asset_async(&args.name)
185185
.await?;

0 commit comments

Comments
 (0)