mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-04 05:31:32 +00:00
fix(console): don't replay history when attaching to the console (#358)
This commit is contained in:
@ -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),
|
||||
|
Reference in New Issue
Block a user