commit - 081c49d08e5da0bd73829b0278c754037cc034e6
commit + 73a31c915c72ef18e78f38c16b4ead97ea7ddb58
blob - 2bfcf0a77e38dfd27b14ab30f08961d9250275e7
blob + dce48c20e482bdd63cfd465aef92e72ca3a29b58
--- kopsd/src/state.rs
+++ kopsd/src/state.rs
/// Logical name of the cluster (from config).
pub type ClusterName = String;
+pub type ProfileName = String;
/// Global daemon state shared by handlers.
pub struct DaemonState {
pub default_cluster: ClusterName,
/// AWS sessions keyed by logical profile name ("dev", "prod", ...).
- pub aws_sessions: Mutex<HashMap<String, AwsSession>>,
+ pub aws_sessions: Mutex<HashMap<ProfileName, AwsSession>>,
}
impl DaemonState {