refactor(wake): убрать неиспользуемый Notifier
This commit is contained in:
1 parent
273a5fa977
commit
7e5b2d4cde
3 files changed
+23
-78
No files matched your search
@@ -225,7 +225,7 @@ func (s *Session) Run(ctx context.Context) (err error) {
|
||||
}
|
||||
}
|
||||
bg.Go(guard(func() {
|
||||
wake.New().Watch(runCtx, wakeTick, wakeThreshold, func(gap time.Duration) {
|
||||
wake.Watch(runCtx, wakeTick, wakeThreshold, func(gap time.Duration) {
|
||||
log.Warnf("device slept for %s - checking TURN allocations", gap.Truncate(time.Second))
|
||||
s.Wake()
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user