fix copy assets progress by moving fetch_add out of trace!(). (#3385)
This commit is contained in:
1 parent
21fdecd219
commit
cf1940cdac
1 file changed
+4
-5
@@ -447,10 +447,9 @@ impl AppBundle {
|
|||||||
assets_to_transfer
|
assets_to_transfer
|
||||||
.par_iter()
|
.par_iter()
|
||||||
.try_for_each(|(from, to, options)| {
|
.try_for_each(|(from, to, options)| {
|
||||||
tracing::trace!(
|
let current = current_asset.fetch_add(1, std::sync::atomic::Ordering::SeqCst);
|
||||||
"Starting asset copy {current}/{asset_count} from {from:?}",
|
|
||||||
current = current_asset.fetch_add(1, std::sync::atomic::Ordering::SeqCst),
|
tracing::trace!("Starting asset copy {current}/{asset_count} from {from:?}");
|
||||||
);
|
|
||||||
|
|
||||||
let res = process_file_to(options, from, to);
|
let res = process_file_to(options, from, to);
|
||||||
|
|
||||||
@@ -460,7 +459,7 @@ impl AppBundle {
|
|||||||
|
|
||||||
BuildRequest::status_copied_asset(
|
BuildRequest::status_copied_asset(
|
||||||
&progress,
|
&progress,
|
||||||
current_asset.fetch_add(0, std::sync::atomic::Ordering::SeqCst),
|
current,
|
||||||
asset_count,
|
asset_count,
|
||||||
from.to_path_buf(),
|
from.to_path_buf(),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user