Skip to content

Commit

Permalink
fix(lib): make rpcq timeout functions public, since initializing Clie…
Browse files Browse the repository at this point in the history
…nt is public (#398)

Co-authored-by: Mark Skilbeck <[email protected]>
  • Loading branch information
BatmanAoD and notmgsk authored Jan 9, 2024
1 parent 2d0a59e commit 58d4618
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/lib/src/compiler/rpcq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,22 @@ impl Client {
/// Set the timeout used for both sending and receiving messages
///
/// Value is number of milliseconds. A value of `-1` means no timeout.
pub(crate) fn set_timeout(&mut self, timeout: i32) {
pub fn set_timeout(&mut self, timeout: i32) {
self.set_send_timeout(timeout);
self.set_receive_timeout(timeout);
}

/// Set the timeout used when sending messages
///
/// Value is number of milliseconds. A value of `-1` means no timeout.
pub(crate) fn set_send_timeout(&mut self, timeout: i32) {
pub fn set_send_timeout(&mut self, timeout: i32) {
self.send_timeout = Some(timeout);
}

/// Set the timeout used when receiving messages
///
/// Value is number of milliseconds. A value of `-1` means no timeout.
pub(crate) fn set_receive_timeout(&mut self, timeout: i32) {
pub fn set_receive_timeout(&mut self, timeout: i32) {
self.receive_timeout = Some(timeout);
}

Expand Down

0 comments on commit 58d4618

Please sign in to comment.