mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
cmd/ctrld: do client info table init in separated goroutine
So it won't cause the listener take more times to be ready.
This commit is contained in:
committed by
Cuong Manh Le
parent
9ed8e49a08
commit
2cd063ebd6
@@ -115,8 +115,11 @@ func (p *prog) run() {
|
||||
format := ctrld.LeaseFileFormat(p.cfg.Service.DHCPLeaseFileFormat)
|
||||
p.ciTable.AddLeaseFile(leaseFile, format)
|
||||
}
|
||||
p.ciTable.Init()
|
||||
go p.ciTable.RefreshLoop(p.stopCh)
|
||||
|
||||
go func() {
|
||||
p.ciTable.Init()
|
||||
p.ciTable.RefreshLoop(p.stopCh)
|
||||
}()
|
||||
go p.watchLinkState()
|
||||
|
||||
for listenerNum := range p.cfg.Listener {
|
||||
|
||||
Reference in New Issue
Block a user