Skip to content

Commit 8b31cdd

Browse files
committed
remove debugging changes
1 parent 166e384 commit 8b31cdd

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/api/tags.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,17 @@ impl Tags {
5858
Ok(stream.next().await.transpose()?)
5959
}
6060

61-
pub async fn set_with_opts(&self, options: SetOptions) -> super::RequestResult<TagInfo> {
61+
pub async fn set_with_opts(&self, options: SetOptions) -> super::RequestResult<()> {
6262
trace!("{:?}", options);
63-
let info = TagInfo {
64-
name: options.name.clone(),
65-
hash: options.value.hash,
66-
format: options.value.format,
67-
};
6863
self.client.rpc(options).await??;
69-
Ok(info)
64+
Ok(())
7065
}
7166

7267
pub async fn set(
7368
&self,
7469
name: impl AsRef<[u8]>,
7570
value: impl Into<HashAndFormat>,
76-
) -> super::RequestResult<TagInfo> {
71+
) -> super::RequestResult<()> {
7772
self.set_with_opts(SetOptions {
7873
name: Tag::from(name.as_ref()),
7974
value: value.into(),

src/store/fs/meta.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ impl Actor {
409409
options: BatchOptions,
410410
) -> anyhow::Result<Self> {
411411
debug!("creating or opening meta database at {}", db_path.display());
412-
let db = match redb::Database::create(&db_path) {
412+
let db = match redb::Database::create(db_path) {
413413
Ok(db) => db,
414414
Err(DatabaseError::UpgradeRequired(1)) => {
415415
return Err(anyhow::anyhow!("migration from v1 no longer supported"));

0 commit comments

Comments
 (0)