Skip to content

Commit

Permalink
cleanup spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Zwiterrion committed Jan 9, 2025
1 parent 3de48ca commit 47c97e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions otoroshi/app/cluster/cluster.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ class ClusterLeaderAgent(config: ClusterConfig, env: Env) {
if (Cluster.logger.isDebugEnabled)
Cluster.logger.debug(s"[${env.clusterConfig.mode.name}] Starting cluster state auto update")
stateUpdaterRef.set(
env.otoroshiScheduler.scheduleAtFixedRate(1.second, env.clusterConfig.leader.cacheStateFor.millis)(
env.otoroshiScheduler.scheduleAtFixedRate(1.second, env.clusterConfig.leader.cacheStateFor.millis)(
utils.SchedulerHelper.runnable(
try {
cacheState()
Expand Down Expand Up @@ -2577,7 +2577,6 @@ class ClusterAgent(config: ClusterConfig, env: Env) {
)
GlobalStatusUpdate.build()(env, env.otoroshiExecutionContext).map { stats =>
val oldQuotasIncr = quotaIncrs.getAndSet(new UnboundedTrieMap[String, ClusterLeaderUpdateMessage]())

queueRef
.get()
.offer(
Expand Down Expand Up @@ -2683,7 +2682,6 @@ class ClusterAgent(config: ClusterConfig, env: Env) {
if (config.mode == ClusterMode.Worker) {
if (Cluster.logger.isDebugEnabled)
Cluster.logger.debug(s"[${env.clusterConfig.mode.name}] Starting cluster agent")

if (config.worker.useWs) {
// Cluster.logger.warn("USING CLUSTER API THROUGH WEBSOCKET: THIS IS NOT READY YET !!!!")
callLeaderAkka(1)
Expand Down

0 comments on commit 47c97e5

Please sign in to comment.