重命名包 client 为 edge;重命名包 server 为 gateway

This commit is contained in:
2025-05-16 17:04:03 +08:00
parent 22f3c37478
commit 20ac7dbd91
37 changed files with 65 additions and 75 deletions

View File

@@ -1,10 +0,0 @@
package utils
func WgWait[T WaitGroup](wg T) <-chan struct{} {
ch := make(chan struct{})
go func() {
wg.Wait()
ch <- struct{}{}
}()
return ch
}

View File

@@ -33,3 +33,12 @@ func (c *CountWaitGroup) Wait() {
func (c *CountWaitGroup) Count() uint64 {
return uint64(c.num.Load())
}
func WgWait[T WaitGroup](wg T) <-chan struct{} {
ch := make(chan struct{})
go func() {
wg.Wait()
ch <- struct{}{}
}()
return ch
}