Skip to content
This repository was archived by the owner on Oct 23, 2022. It is now read-only.

Commit b454759

Browse files
committed
chore(ipfs/ipns): work around unused warning
this probably makes sense in the future if ipns dht records ever become supported.
1 parent 0927be1 commit b454759

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/ipns/mod.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ mod dnslink;
1010
/// IPNS facade around [`Ipns`].
1111
#[derive(Clone, Debug)]
1212
pub struct Ipns<Types: RepoTypes> {
13-
ipfs: Ipfs<Types>,
13+
// FIXME(unused): scaffolding while ipns functionality as a whole suggests we should have dht
14+
// queries etc. here (currently unimplemented).
15+
_ipfs: Ipfs<Types>,
1416
}
1517

1618
impl<Types: RepoTypes> Ipns<Types> {
17-
pub fn new(ipfs: Ipfs<Types>) -> Self {
18-
Ipns { ipfs }
19+
pub fn new(_ipfs: Ipfs<Types>) -> Self {
20+
Ipns { _ipfs }
1921
}
2022

2123
/// Resolves a ipns path to an ipld path.

0 commit comments

Comments
 (0)