Skip to content

Commit

Permalink
Add blocking function back into ops.rs.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwyb committed May 8, 2019
1 parent 4aeae85 commit 8a63a58
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions cli/ops.rs
Expand Up @@ -885,11 +885,13 @@ fn op_chown(
return odd_future(e);
}

debug!("op_chown {}", &path);
match deno_fs::chown(&path, uid, gid) {
Ok(_) => ok_future(empty_buf()),
Err(e) => odd_future(e),
}
blocking(base.sync(), move || {
debug!("op_chown {}", &path);
match deno_fs::chown(&path, uid, gid) {
Ok(_) => Ok(empty_buf()),
Err(e) => Err(e),
}
})
}

fn op_open(
Expand Down

0 comments on commit 8a63a58

Please sign in to comment.