fix(console): don't replay history when attaching to the console (#358)

This commit is contained in:
Alex Zenla
2024-08-24 20:49:33 -07:00
committed by GitHub
parent 694de5d1fd
commit ec74bc8d2b
6 changed files with 13 additions and 7 deletions

View File

@ -46,7 +46,9 @@ impl AttachZoneConsoleRpc {
.map_err(|error| anyhow!("failed to attach to console: {}", error))?;
let output = try_stream! {
yield ZoneConsoleReply { data: console.initial.clone(), };
if request.replay_history {
yield ZoneConsoleReply { data: console.initial.clone(), };
}
loop {
let what = select! {
x = receiver.recv() => ConsoleDataSelect::Read(x),