Use configured client ID on initial connection (fixes #941)

This commit is contained in:
Roderick van Domburg 2022-01-22 21:17:55 +01:00
parent f2625965b3
commit 0822af0328
No known key found for this signature in database
GPG key ID: FE2585E713F9F30A

View file

@ -105,9 +105,14 @@ impl Session {
debug!("new Session"); debug!("new Session");
let session_data = SessionData {
client_id: config.client_id.clone(),
..SessionData::default()
};
Self(Arc::new(SessionInternal { Self(Arc::new(SessionInternal {
config, config,
data: RwLock::new(SessionData::default()), data: RwLock::new(session_data),
http_client, http_client,
tx_connection: OnceCell::new(), tx_connection: OnceCell::new(),
cache: cache.map(Arc::new), cache: cache.map(Arc::new),