Skip to content

Commit

Permalink
Changes based on upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Feb 10, 2020
1 parent 6aaaddd commit 1883dab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/ops/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,17 @@ struct FetchRemoteAssetArgs {
}

fn op_fetch_remote_asset(
state: &ThreadSafeState,
state: &State,
args: Value,
_data: Option<ZeroCopyBuf>,
) -> Result<JsonOp, ErrBox> {
let args: FetchRemoteAssetArgs = serde_json::from_value(args)?;
debug!("args.name: {}", args.name);
let global_state = state.borrow().global_state.clone();

let future: Pin<Box<dyn Future<Output = Result<Value, ErrBox>>>> =
Box::pin(async move {
let source_file = state
.global_state
let source_file = global_state
.file_fetcher
.fetch_remote_asset_async(&args.name)
.await?;
Expand Down

0 comments on commit 1883dab

Please sign in to comment.