Changeset View
Changeset View
Standalone View
Standalone View
keyserver/addons/rust-node-addon/src/identity_client/mod.rs
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
struct IdentityServiceConfig { | struct IdentityServiceConfig { | ||||
identity_socket_addr: String, | identity_socket_addr: String, | ||||
identity_auth_token: String, | identity_auth_token: String, | ||||
} | } | ||||
impl Default for IdentityServiceConfig { | impl Default for IdentityServiceConfig { | ||||
fn default() -> Self { | fn default() -> Self { | ||||
Self { | Self { | ||||
identity_socket_addr: "https://[::1]:50051".to_string(), | identity_socket_addr: "https://[::1]:50054".to_string(), | ||||
identity_auth_token: "test".to_string(), | identity_auth_token: "test".to_string(), | ||||
} | } | ||||
} | } | ||||
} | } | ||||
fn handle_unexpected_response<T: std::fmt::Debug>(message: Option<T>) -> Error { | fn handle_unexpected_response<T: std::fmt::Debug>(message: Option<T>) -> Error { | ||||
error!("Received an unexpected message: {:?}", message); | error!("Received an unexpected message: {:?}", message); | ||||
Error::from_status(Status::GenericFailure) | Error::from_status(Status::GenericFailure) | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |