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 fb4a89e commit 029ec12Copy full SHA for 029ec12
examples/transfer-collection.rs
@@ -80,10 +80,7 @@ impl Node {
80
81
let collection_items = collection_items
82
.iter()
83
- .map(|(name, tag)| {
84
- let hash = tag.hash().clone();
85
- (name.to_string(), hash)
86
- })
+ .map(|(name, tag)| (name.to_string(), *tag.hash()))
87
.collect::<Vec<_>>();
88
89
let collection = Collection::from_iter(collection_items);
@@ -93,7 +90,7 @@ impl Node {
93
90
Ok(*tt.hash())
94
91
}
95
92
96
- /// retrive an entire collection from a given hash and provider
+ /// retrieve an entire collection from a given hash and provider
97
async fn get_collection(&self, hash: Hash, provider: NodeAddr) -> Result<()> {
98
let req = HashAndFormat::hash_seq(hash);
99
let addrs = Shuffled::new(vec![provider.node_id]);
0 commit comments