Skip to content
Snippets Groups Projects
Verified Commit 3f11e92a authored by Sam Whited's avatar Sam Whited
Browse files

agent: don't wake up main thread every hour


This patch removes an unnecessary loop that was waking up the main agent
thread every hour (not that waking up the main thread just to put it
back to sleep was likely going to be a problem, but we might as well
reduce context switching if at all possible).

Signed-off-by: default avatarSam Whited <sam@samwhited.com>
parent 9d1e31ed
Branches lb
Tags
1 merge request!11Add a load balancer
Pipeline #79548 passed
......@@ -70,9 +70,7 @@ func main() {
agent.Start()
defer agent.Stop()
for {
time.Sleep(time.Hour)
}
select {}
}
func registerBandwidth(agent *lbagent.Agent, config Config) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment