forked from Elara6331/itd
17 lines
218 B
Go
17 lines
218 B
Go
package main
|
|
|
|
import (
|
|
"sync"
|
|
|
|
"go.elara.ws/logger/log"
|
|
)
|
|
|
|
type WaitGroup struct {
|
|
*sync.WaitGroup
|
|
}
|
|
|
|
func (wg WaitGroup) Done(c string) {
|
|
log.Info("Component stopped").Str("name", c).Send()
|
|
wg.WaitGroup.Done()
|
|
}
|