mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-26 23:20:35 +08:00
fix: Use radicle::Node::announce_refs_for
This commit is contained in:
@@ -116,7 +116,7 @@ pub trait IssuesMut: Profile {
|
||||
)?;
|
||||
|
||||
if opts.announce() {
|
||||
if let Err(e) = node.announce_refs(rid) {
|
||||
if let Err(e) = node.announce_refs_for(rid, [profile.public_key]) {
|
||||
log::error!("Not able to announce changes: {}", e)
|
||||
}
|
||||
}
|
||||
@@ -188,7 +188,7 @@ pub trait IssuesMut: Profile {
|
||||
}
|
||||
|
||||
if opts.announce() {
|
||||
if let Err(e) = node.announce_refs(rid) {
|
||||
if let Err(e) = node.announce_refs_for(rid, [profile.public_key]) {
|
||||
log::error!("Not able to announce changes: {}", e)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -292,7 +292,7 @@ pub trait PatchesMut: Profile {
|
||||
}
|
||||
|
||||
if opts.announce() {
|
||||
if let Err(e) = node.announce_refs(rid) {
|
||||
if let Err(e) = node.announce_refs_for(rid, [profile.public_key]) {
|
||||
log::error!("Not able to announce changes: {}", e)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ pub trait Thread: Profile {
|
||||
)?;
|
||||
|
||||
if opts.announce() {
|
||||
if let Err(e) = node.announce_refs(rid) {
|
||||
if let Err(e) = node.announce_refs_for(rid, [profile.public_key]) {
|
||||
log::error!("Not able to announce changes: {}", e)
|
||||
}
|
||||
}
|
||||
@@ -162,7 +162,7 @@ pub trait Thread: Profile {
|
||||
)?;
|
||||
|
||||
if opts.announce() {
|
||||
if let Err(e) = node.announce_refs(rid) {
|
||||
if let Err(e) = node.announce_refs_for(rid, [profile.public_key]) {
|
||||
log::error!("Not able to announce changes: {}", e)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user