node: Respond to `announce-refs` control

This commit is contained in:
Alexis Sellier 2023-01-23 18:15:45 +01:00
parent d324eab377
commit c888f40660
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -181,6 +181,7 @@ fn drain<H: Handle<Error = client::handle::Error>>(
if let Err(e) = handle.announce_refs(id) {
return Err(DrainError::Client(e));
}
writeln!(writer, "{}", node::RESPONSE_OK)?;
} else {
return Err(DrainError::InvalidCommandArg(arg.to_owned()));
}