···147147 eyre::bail!("missing did doc");
148148 };
149149150150- let Some(service) = did_doc
151151- .service
152152- .and_then(|services| services.into_iter().find(|svc| svc.id == PDS_SERVICE_ID))
153153- else {
150150+ let Some(service) = did_doc.find_service_by_id(PDS_SERVICE_ID) else {
154151 eyre::bail!("DID doc contained no service endpoint");
155152 };
156153157157- let pds_url = service.service_endpoint;
154154+ let pds_url = service.service_endpoint.clone();
158155159156 // check the repo status before we attempt to resolve the handle. There's a case where we can't
160157 // resolve the handle in the DID doc because the acc is already deleted.