fix panic
All checks were successful
Build image / build (push) Successful in 1m20s

This commit is contained in:
timerzz 2024-11-29 22:07:26 +08:00
parent c16e02a7ea
commit e28c5622de

View File

@ -36,7 +36,7 @@ func NewController() *Controller {
pushers: make(map[int64]Pusher, len(pushers)),
}
for _, pusher := range pushers {
c.pushers[pusher.Id] = NewPusher(pusher)
ctl.pushers[pusher.Id] = NewPusher(pusher)
}
fmt.Printf("共%d个pusher\n", len(pushers))
return ctl