Skip to content

Commit

Permalink
refactor: rename syscall sender's execute method
Browse files Browse the repository at this point in the history
  • Loading branch information
florianhartung committed Aug 1, 2024
1 parent ca7daf8 commit 9a09153
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/syscall/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ mod tests {
params: vec![1, 2, 3],
};

let response = sender.execute_fd(request).unwrap();
let response = sender.execute(request).unwrap();

assert_eq!(response.id, SyscallType::GetProcessId);
assert_eq!(response.status, 456);
Expand Down
2 changes: 1 addition & 1 deletion core/src/syscall/sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl SyscallSender {
Ok(())
}

pub fn execute_fd(&self, request: SyscallRequest) -> Result<SyscallResponse> {
pub fn execute(&self, request: SyscallRequest) -> Result<SyscallResponse> {
// Create the file descriptor triple
let mut request_fd = Mfd::create("requ")?;
let mut response_fd = Mfd::create("resp")?;
Expand Down
2 changes: 1 addition & 1 deletion partition/src/syscall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ use anyhow::Result;
use crate::SYSCALL;

pub fn execute(request: SyscallRequest) -> Result<SyscallResponse> {
SYSCALL.execute_fd(request)
SYSCALL.execute(request)
}

0 comments on commit 9a09153

Please sign in to comment.