Massive refactor
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 6m12s
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 6m12s
This commit is contained in:
@@ -18,7 +18,7 @@ pub fn header() -> Vec<Span<'static>> {
|
||||
}
|
||||
|
||||
pub async fn to_row(tunnel: &Tunnel) -> Vec<Span<'static>> {
|
||||
let access = match tunnel.access.read().await.deref() {
|
||||
let access = match tunnel.inner.access.read().await.deref() {
|
||||
TunnelAccess::Private(owner) => owner.clone().yellow(),
|
||||
TunnelAccess::Protected => "PROTECTED".blue(),
|
||||
TunnelAccess::Public => "PUBLIC".green(),
|
||||
@@ -30,12 +30,12 @@ pub async fn to_row(tunnel: &Tunnel) -> Vec<Span<'static>> {
|
||||
.unwrap_or("FAILED".red());
|
||||
|
||||
vec![
|
||||
tunnel.name.clone().into(),
|
||||
tunnel.registry_entry.get_name().to_owned().into(),
|
||||
access,
|
||||
tunnel.port.to_string().into(),
|
||||
tunnel.inner.port.to_string().into(),
|
||||
address,
|
||||
tunnel.stats.connections().to_string().into(),
|
||||
tunnel.stats.rx().to_string().into(),
|
||||
tunnel.stats.tx().to_string().into(),
|
||||
tunnel.inner.stats.connections().to_string().into(),
|
||||
tunnel.inner.stats.rx().to_string().into(),
|
||||
tunnel.inner.stats.tx().to_string().into(),
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user