WIP Telegram: modulo akode-telegram (API e impostazioni), in pausa
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,7 @@ pub use transport::ConnectionOrigin;
|
||||
pub use transport::DaemonShutdownAccess;
|
||||
pub use transport::DaemonSocketFileGuard;
|
||||
pub use transport::REMOTE_CONTROL_DISABLED_ENV_VAR;
|
||||
pub use transport::next_connection_id;
|
||||
pub use transport::RemoteControlDisabledByRequirements;
|
||||
pub use transport::RemoteControlEnableError;
|
||||
pub use transport::RemoteControlHandle;
|
||||
|
||||
@@ -207,7 +207,8 @@ pub enum ConnectionOrigin {
|
||||
|
||||
static CONNECTION_ID_COUNTER: AtomicU64 = AtomicU64::new(0);
|
||||
|
||||
fn next_connection_id() -> ConnectionId {
|
||||
/// A fresh id for a new connection, also used by internal clients such as the Telegram bridge.
|
||||
pub fn next_connection_id() -> ConnectionId {
|
||||
ConnectionId(CONNECTION_ID_COUNTER.fetch_add(1, Ordering::Relaxed))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user