mirror of
https://github.com/dragonheim/gagent.git
synced 2025-04-27 19:08:58 -07:00
cleanup: Started cleaning up the commenting format.
This commit is contained in:
parent
0de851e0e5
commit
b95d3950c5
10 changed files with 94 additions and 70 deletions
|
@ -7,7 +7,9 @@ import (
|
|||
|
||||
gstructs "github.com/dragonheim/gagent/internal/gstructs"
|
||||
|
||||
// picol "github.com/dragonheim/gagent/src/picol"
|
||||
/*
|
||||
* picol "github.com/dragonheim/gagent/src/picol"
|
||||
*/
|
||||
|
||||
prometheus "github.com/prometheus/client_golang/prometheus"
|
||||
promauto "github.com/prometheus/client_golang/prometheus/promauto"
|
||||
|
@ -22,12 +24,12 @@ var (
|
|||
)
|
||||
|
||||
/*
|
||||
The "worker" processes the agent code. The worker nodes do not know
|
||||
anything about the network structure. Instead they know only to which
|
||||
router(s) they are connected. The worker will execute the agent code and
|
||||
pass the agent and it's results to a router.
|
||||
Main is the entrypoint for the worker process
|
||||
*/
|
||||
* The "worker" processes the agent code. The worker nodes do not know
|
||||
* anything about the network structure. Instead they know only to which
|
||||
* router(s) they are connected. The worker will execute the agent code and
|
||||
* pass the agent and it's results to a router.
|
||||
* Main is the entrypoint for the worker process
|
||||
*/
|
||||
func Main(wg *sync.WaitGroup, config gstructs.GagentConfig) {
|
||||
log.Printf("[INFO] Starting worker\n")
|
||||
defer wg.Done()
|
||||
|
@ -46,7 +48,9 @@ func Main(wg *sync.WaitGroup, config gstructs.GagentConfig) {
|
|||
wg.Add(1)
|
||||
go getAgent(wg, config.UUID, connectString)
|
||||
}
|
||||
// workerListener := fmt.Sprintf("tcp://%s:%d", config.ListenAddr, config.WorkerPort)
|
||||
/*
|
||||
* workerListener := fmt.Sprintf("tcp://%s:%d", config.ListenAddr, config.WorkerPort)
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue