Take the gateway's identity as a blob and the query login as the engine's own type

Command::ObserveGateway.identity is a Box<IdentityBlob> (a TeamSpeak
identity as the key store keeps it; voelin_core::ts::identity::to_blob and
from_blob convert) and gateway::connect takes the blob too; gateway.rs reads
it itself, and one it cannot read ends the observation with its reason
instead of reaching the gateway. Command::ObserveQuery.connect is a
QueryLogin (transport, address, user, secret, server port and id) that
query.rs turns into voelin_query::Connect with the query crate's own line
options, which is what the UI always passed. voelin_core re-exports
IdentityBlob; voelin-identity is a dependency of voelin-core now, so
Cargo.lock gains that edge (the crate was in the graph already, and no
third-party package is added: THIRD_PARTY_NOTICES.md is unchanged).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-24 06:29:50 +03:00
1 parent a451f027f3
commit be84874a09
11 files changed
+322 -39

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ pub async fn run(args: GatewayArgs) -> Result<()> {
engine.send(Command::ObserveGateway {
session: SESSION,
urls: vec![args.url.clone()],
identity: Box::new(identity.clone()),
identity: Box::new(voelin_core::ts::identity::to_blob(&identity)),
});
if let Some(addr) = &args.voice {
let mut options = VoiceOptions::new(addr, &args.nick);