Compare commits

..

2 commits

Author SHA1 Message Date
6e3aef2e84 build: add start-mac-tunnel
All checks were successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
2024-08-30 08:17:10 +01:00
6efe82d5b6 fix: create git graph log to after doing a fetch
Some checks failed
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/push/push-next Pipeline failed
Rust / build (push) Successful in 7m14s
2024-08-30 08:16:37 +01:00

View file

@ -3,7 +3,10 @@ use actix::prelude::*;
use crate::{ use crate::{
alerts::messages::NotifyUser, alerts::messages::NotifyUser,
server::{actor::messages::RepoUpdate, ServerActor}, server::{
actor::messages::{RepoUpdate, ServerUpdate},
ServerActor,
},
}; };
use derive_more::Deref; use derive_more::Deref;
use kxio::network::Network; use kxio::network::Network;
@ -111,7 +114,6 @@ impl RepoActor {
} }
} }
#[allow(unused_variables)]
fn update_tui_log(&self, log: git::graph::Log) { fn update_tui_log(&self, log: git::graph::Log) {
#[cfg(feature = "tui")] #[cfg(feature = "tui")]
{ {
@ -119,7 +121,6 @@ impl RepoActor {
} }
} }
#[allow(unused_variables)]
fn alert_tui(&self, alert: impl Into<String>) { fn alert_tui(&self, alert: impl Into<String>) {
#[cfg(feature = "tui")] #[cfg(feature = "tui")]
{ {
@ -129,7 +130,6 @@ impl RepoActor {
} }
} }
#[allow(unused_variables)]
fn update_tui(&self, repo_update: RepoUpdate) { fn update_tui(&self, repo_update: RepoUpdate) {
#[cfg(feature = "tui")] #[cfg(feature = "tui")]
{ {
@ -137,7 +137,7 @@ impl RepoActor {
return; return;
}; };
let update = crate::server::actor::messages::ServerUpdate::RepoUpdate { let update = ServerUpdate::RepoUpdate {
forge_alias: self.repo_details.forge.forge_alias().clone(), forge_alias: self.repo_details.forge.forge_alias().clone(),
repo_alias: self.repo_details.repo_alias.clone(), repo_alias: self.repo_details.repo_alias.clone(),
repo_update, repo_update,