Ping the server.
(&self)
| 93 | |
| 94 | /// Ping the server. |
| 95 | pub async fn ping(&self) -> NodeDbResult<()> { |
| 96 | let mut conn = self.pool.acquire().await?; |
| 97 | conn.ping().await |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | /// Check if an error is a connection-level failure (worth retrying). |