Skip to content

Commit

Permalink
lint: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zhu327 committed Dec 14, 2024
1 parent a9967e0 commit d582850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/etcd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ impl EtcdClientWrapper {
.ok_or("Etcd client is not initialized")?;

let resp = client.get(self.with_prefix(key), None).await?;
return Ok(resp.kvs().first().map(|kv| kv.value().to_vec()));
Ok(resp.kvs().first().map(|kv| kv.value().to_vec()))
}

pub async fn put(&self, key: &str, value: Vec<u8>) -> Result<(), Box<dyn Error + Send + Sync>> {
Expand Down

0 comments on commit d582850

Please sign in to comment.