mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 10:30:41 +08:00
remote-helper: Remove SyncWriter in favor of PaintTarget
This commit is contained in:
committed by
Lorenz Leutgeb
parent
153a8f9fbe
commit
ee9ecfda76
@@ -930,16 +930,16 @@ fn sync(
|
||||
profile: &Profile,
|
||||
) -> Result<(), cli::node::SyncError> {
|
||||
let progress = if io::stderr().is_terminal() {
|
||||
cli::node::SyncWriter::Stderr(io::stderr())
|
||||
term::PaintTarget::Stderr
|
||||
} else {
|
||||
cli::node::SyncWriter::Sink
|
||||
term::PaintTarget::Hidden
|
||||
};
|
||||
let result = cli::node::announce(
|
||||
repo,
|
||||
cli::node::SyncSettings::default().with_profile(profile),
|
||||
cli::node::SyncReporting {
|
||||
progress,
|
||||
completion: cli::node::SyncWriter::Stderr(io::stderr()),
|
||||
completion: term::PaintTarget::Stderr,
|
||||
debug: opts.sync_debug,
|
||||
},
|
||||
&mut node,
|
||||
|
||||
Reference in New Issue
Block a user