mirror of
https://github.com/dragonheim/gagent.git
synced 2025-04-26 02:18:59 -07:00
fix: converted from select to waitGroups.
This commit is contained in:
parent
e61e6d2994
commit
f7cba2689c
8 changed files with 75 additions and 31 deletions
|
@ -12,7 +12,8 @@ import (
|
|||
)
|
||||
|
||||
// Main is the initiation function for a Client
|
||||
func Main(config gs.GagentConfig, rid int, agent string) {
|
||||
func Main(wg *sync.WaitGroup, config gs.GagentConfig, rid int, agent string) {
|
||||
defer wg.Done()
|
||||
log.Printf("[INFO] Starting client\n")
|
||||
|
||||
// Generate connect string for this router.
|
||||
|
@ -51,4 +52,5 @@ func Main(config gs.GagentConfig, rid int, agent string) {
|
|||
// }
|
||||
// mu.Unlock()
|
||||
// }
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue