app: reach the daemon and load the real history
The pipe path was missing a backslash, so every client call went to a path Windows never resolves and the app reported a dead daemon. With the path fixed, --probe answers against the running daemon and parses its settings with the app's model; a recording made through it lands on disk. Reading a large history (288 timelines, 524 MB of raw API responses) took eleven seconds, so the files are parsed on up to eight threads now. The history refresh also runs in headless runs, and `--live` renders a snapshot from the daemon and the real timelines instead of sample data.
This commit is contained in:
1 parent
8883e93d2b
commit
b06ec4be7b
5 files changed
+81
-32
No files matched your search
+2
-2
@@ -73,7 +73,7 @@ pub struct IpcResponse {
|
||||
pub fn default_socket_path() -> PathBuf {
|
||||
#[cfg(windows)]
|
||||
{
|
||||
PathBuf::from(r"\.\pipe\record-daemon")
|
||||
PathBuf::from(r"\\.\pipe\record-daemon")
|
||||
}
|
||||
#[cfg(not(windows))]
|
||||
{
|
||||
@@ -483,7 +483,7 @@ mod tests {
|
||||
fn the_pipe_name_matches_the_daemon() {
|
||||
assert_eq!(
|
||||
default_socket_path().to_string_lossy(),
|
||||
r"\.\pipe\record-daemon"
|
||||
r"\\.\pipe\record-daemon"
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user