Skip to content

Commit

Permalink
Getter for process id (#26)
Browse files Browse the repository at this point in the history
Added getter for process_id
  • Loading branch information
khanova authored Nov 16, 2023
1 parent ef8559b commit 988d0dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tokio-postgres/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ impl Client {
}
}

/// Returns process_id.
pub fn get_process_id(&self) -> i32 {
self.process_id
}

pub(crate) fn inner(&self) -> &Arc<InnerClient> {
&self.inner
}
Expand Down

0 comments on commit 988d0dd

Please sign in to comment.