diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-01-16 17:15:52 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-01-16 17:33:09 +0200 |
commit | 6ed7241df0accea0d06beefa6aa39543b3a138e3 (patch) | |
tree | 1ddb56e4a431421043bd72d38a895f2bd73f23ea /src/cmd/get_chunk.rs | |
parent | 61ea591bd254a240bb8c45221dea057c1517b0ae (diff) | |
download | obnam2-6ed7241df0accea0d06beefa6aa39543b3a138e3.tar.gz |
refactor: rename AsyncBackupClient to just BackupClient
There is only async.
Sponsored-by: author
Diffstat (limited to 'src/cmd/get_chunk.rs')
-rw-r--r-- | src/cmd/get_chunk.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/get_chunk.rs b/src/cmd/get_chunk.rs index 905e997..0b27084 100644 --- a/src/cmd/get_chunk.rs +++ b/src/cmd/get_chunk.rs @@ -1,7 +1,7 @@ //! The `get-chunk` subcommand. use crate::chunkid::ChunkId; -use crate::client::AsyncBackupClient; +use crate::client::BackupClient; use crate::config::ClientConfig; use crate::error::ObnamError; use std::io::{stdout, Write}; @@ -24,7 +24,7 @@ impl GetChunk { } async fn run_async(&self, config: &ClientConfig) -> Result<(), ObnamError> { - let client = AsyncBackupClient::new(config)?; + let client = BackupClient::new(config)?; let chunk_id: ChunkId = self.chunk_id.parse().unwrap(); let chunk = client.fetch_chunk(&chunk_id).await?; let stdout = stdout(); |