Skip to content

Commit

Permalink
docs: update docs of maintenance client
Browse files Browse the repository at this point in the history
Signed-off-by: bsbds <[email protected]>
  • Loading branch information
bsbds committed Jul 11, 2023
1 parent e928b03 commit 8975139
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xline-client/src/clients/maintenance.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{fmt::Debug, sync::Arc};

use tonic::{transport::Channel, Streaming};
use xlineapi::{self, SnapshotRequest, SnapshotResponse};
use xlineapi::{SnapshotRequest, SnapshotResponse};

use crate::{
error::{ClientError, Result},
Expand All @@ -16,7 +16,7 @@ pub struct MaintenanceClient {
}

impl MaintenanceClient {
/// Create a new maintenance client
/// Creates a new maintenance client
#[inline]
#[must_use]
pub fn new(channel: Channel, token: Option<String>) -> Self {
Expand All @@ -32,7 +32,7 @@ impl MaintenanceClient {
///
/// # Errors
///
/// If the RPC client fails to send request
/// This function will return an error if the inner RPC client encountered a propose failure
#[inline]
pub async fn snapshot(&mut self) -> Result<Streaming<SnapshotResponse>> {
Ok(self
Expand Down

0 comments on commit 8975139

Please sign in to comment.