Implement indexing into Apache Druid #1
|
@ -35,6 +35,14 @@ def allRelaysActive(net):
|
||||||
if name in main.IRCPool.keys():
|
if name in main.IRCPool.keys():
|
||||||
if main.IRCPool[name].authenticated and main.IRCPool[name].isconnected:
|
if main.IRCPool[name].authenticated and main.IRCPool[name].isconnected:
|
||||||
existNum += 1
|
existNum += 1
|
||||||
|
else:
|
||||||
|
debug(f"allRelaysActive() {name} is not authenticated or connected")
|
||||||
|
debug(
|
||||||
|
(
|
||||||
|
f"allRelaysActive() {name} auth:{main.IRCPool[name].authenticated} "
|
||||||
|
f"connected:{main.IRCPool[name].isconnected}"
|
||||||
|
)
|
||||||
|
)
|
||||||
debug(f"allRelaysActive() finished, {existNum}/{relayNum} relays active for {net}")
|
debug(f"allRelaysActive() finished, {existNum}/{relayNum} relays active for {net}")
|
||||||
if existNum == relayNum:
|
if existNum == relayNum:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue