mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(irc): rewrite handler pipeline (#399)
* fix(irc): rewrite handler pipeline This might be overkill but the pipeline has been made event driven. I've tested on a couple networks, and bouncing nicks / connections brings it back every time. creating the a different branch from https://github.com/autobrr/autobrr/pull/398 because it's pretty intrusive (and I didn't apply the GUI changes). * fix(irc): couple adjustments * fix(irc): deadlocks * fix: add missing dependency * fix(irc): remove more locks from connect cmds * feat(irc): conditional monitoring message * feat(irc): show unhealthy network in ui * feat(irc): improve logs and comments
This commit is contained in:
parent
4c93cac248
commit
7deac6a781
7 changed files with 317 additions and 281 deletions
|
@ -50,6 +50,7 @@ type IrcNetworkWithHealth struct {
|
|||
Connected bool `json:"connected"`
|
||||
ConnectedSince time.Time `json:"connected_since"`
|
||||
ConnectionErrors []string `json:"connection_errors"`
|
||||
Healthy bool `json:"healthy"`
|
||||
}
|
||||
|
||||
type ChannelWithHealth struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue