Skip to content

Commit

Permalink
⚗️ Update experimental code
Browse files Browse the repository at this point in the history
  • Loading branch information
czy-29 committed Dec 14, 2024
1 parent 6af2caa commit a659f0a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tracing-surreal/src/tracing_msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,13 @@ pub struct ClientHandshake {
pub proc_id: u32,
pub msg_format: MsgFormat,
}

// Need to gate this under `experimental` feature flag.
#[doc(hidden)]
pub fn current_exe_name() -> std::io::Result<String> {
Ok(std::env::current_exe()?
.file_name()
.expect("this should not happen here")
.to_string_lossy()
.into())
}

0 comments on commit a659f0a

Please sign in to comment.