Changeset View
Changeset View
Standalone View
Standalone View
services/commtest/src/identity/device.rs
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | device_key_upload: Some(DeviceKeyUpload { | ||||
content_upload: Some(PreKey { | content_upload: Some(PreKey { | ||||
pre_key: "content_prekey".to_string(), | pre_key: "content_prekey".to_string(), | ||||
pre_key_signature: "content_prekey_sig".to_string(), | pre_key_signature: "content_prekey_sig".to_string(), | ||||
}), | }), | ||||
notif_upload: Some(PreKey { | notif_upload: Some(PreKey { | ||||
pre_key: "notif_prekey".to_string(), | pre_key: "notif_prekey".to_string(), | ||||
pre_key_signature: "notif_prekey_sig".to_string(), | pre_key_signature: "notif_prekey_sig".to_string(), | ||||
}), | }), | ||||
onetime_content_prekeys: Vec::new(), | one_time_content_prekeys: Vec::new(), | ||||
onetime_notif_prekeys: Vec::new(), | one_time_notif_prekeys: Vec::new(), | ||||
device_type: client::DeviceType::Keyserver.into(), | device_type: client::DeviceType::Keyserver.into(), | ||||
}), | }), | ||||
}; | }; | ||||
// TODO: allow endpoint to be configured | // TODO: allow endpoint to be configured | ||||
let mut identity_client = | let mut identity_client = | ||||
IdentityClientServiceClient::connect("http://127.0.0.1:50054") | IdentityClientServiceClient::connect("http://127.0.0.1:50054") | ||||
.await | .await | ||||
Show All 32 Lines |