We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f680b7 commit 3fb51aeCopy full SHA for 3fb51ae
iroh-dns-server/src/store/signed_packets.rs
@@ -81,7 +81,7 @@ impl SignedPacketStore {
81
82
pub async fn get(&self, key: &PublicKeyBytes) -> Result<Option<SignedPacket>> {
83
let db = self.db.clone();
84
- let key = key.clone();
+ let key = *key;
85
let res = tokio::task::spawn_blocking(move || {
86
let tx = db.begin_read()?;
87
let table = tx.open_table(SIGNED_PACKETS_TABLE)?;
@@ -93,7 +93,7 @@ impl SignedPacketStore {
93
94
pub async fn remove(&self, key: &PublicKeyBytes) -> Result<bool> {
95
96
97
tokio::task::spawn_blocking(move || {
98
let tx = db.begin_write()?;
99
let updated = {
0 commit comments