summaryrefslogtreecommitdiff
path: root/src/cmd/show_gen.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-01-16 17:15:52 +0200
committerLars Wirzenius <liw@liw.fi>2022-01-16 17:33:09 +0200
commit6ed7241df0accea0d06beefa6aa39543b3a138e3 (patch)
tree1ddb56e4a431421043bd72d38a895f2bd73f23ea /src/cmd/show_gen.rs
parent61ea591bd254a240bb8c45221dea057c1517b0ae (diff)
downloadobnam2-6ed7241df0accea0d06beefa6aa39543b3a138e3.tar.gz
refactor: rename AsyncBackupClient to just BackupClient
There is only async. Sponsored-by: author
Diffstat (limited to 'src/cmd/show_gen.rs')
-rw-r--r--src/cmd/show_gen.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/show_gen.rs b/src/cmd/show_gen.rs
index 6ec1203..6c8ba19 100644
--- a/src/cmd/show_gen.rs
+++ b/src/cmd/show_gen.rs
@@ -1,6 +1,6 @@
//! The `show-generation` subcommand.
-use crate::client::AsyncBackupClient;
+use crate::client::BackupClient;
use crate::config::ClientConfig;
use crate::error::ObnamError;
use crate::fsentry::FilesystemKind;
@@ -26,7 +26,7 @@ impl ShowGeneration {
async fn run_async(&self, config: &ClientConfig) -> Result<(), ObnamError> {
let temp = NamedTempFile::new()?;
- let client = AsyncBackupClient::new(config)?;
+ let client = BackupClient::new(config)?;
let genlist = client.list_generations().await?;
let gen_id = genlist.resolve(&self.gen_id)?;