File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1- use std:: collections:: { HashMap , HashSet } ;
1+ use std:: collections:: HashMap ;
22
33use super :: { Error , Result } ;
44use crate :: pki_env:: { PkiEnvironment , hooks:: HttpMethod } ;
55
66impl PkiEnvironment {
77 /// Fetch certificate revocation lists from the given URIs, return a map from the URLs to a DER-encoded certificate
88 /// list.
9- pub async fn fetch_crls ( & self , uris : HashSet < String > ) -> Result < HashMap < String , Vec < u8 > > > {
10- let mut crls = HashMap :: with_capacity ( uris. len ( ) ) ;
9+ pub async fn fetch_crls ( & self , uris : impl Iterator < Item = & str > ) -> Result < HashMap < String , Vec < u8 > > > {
10+ let mut crls = HashMap :: with_capacity ( uris. size_hint ( ) . 0 ) ;
1111
1212 for uri in uris {
13+ let uri = uri. to_owned ( ) ;
1314 let response = self
1415 . hooks
1516 . http_request ( HttpMethod :: Get , uri. clone ( ) , vec ! [ ] , vec ! [ ] )
You can’t perform that action at this time.
0 commit comments