mirror of
https://github.com/dragonheim/gagent.git
synced 2025-04-26 03:28:59 -07:00
A bit more refactor to clean up the code.
This commit is contained in:
parent
7e51584832
commit
de41740bac
5 changed files with 40 additions and 35 deletions
|
@ -5,7 +5,7 @@ import (
|
|||
log "log"
|
||||
sync "sync"
|
||||
|
||||
gs "git.dragonheim.net/dragonheim/gagent/internal/gstructs"
|
||||
gstructs "git.dragonheim.net/dragonheim/gagent/internal/gstructs"
|
||||
|
||||
// picol "git.dragonheim.net/dragonheim/gagent/src/picol"
|
||||
|
||||
|
@ -27,9 +27,9 @@ var (
|
|||
router(s) they are connected. The worker will execute the agent code and
|
||||
pass the agent and it's results to a router.
|
||||
*/
|
||||
func Main(wg *sync.WaitGroup, config gs.GagentConfig) {
|
||||
defer wg.Done()
|
||||
func Main(wg *sync.WaitGroup, config gstructs.GagentConfig) {
|
||||
log.Printf("[INFO] Starting worker\n")
|
||||
defer wg.Done()
|
||||
|
||||
for key := range config.Routers {
|
||||
rport := config.WorkerPort
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue