move wakup mechanism into separate package

This commit is contained in:
Christian Schwarz
2018-10-12 12:44:40 +02:00
parent 1fb59c953a
commit f9d24d15ed
4 changed files with 42 additions and 32 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import (
"github.com/problame/go-streamrpc"
"github.com/prometheus/client_golang/prometheus"
"github.com/zrepl/zrepl/config"
"github.com/zrepl/zrepl/daemon/job/wakeup"
"github.com/zrepl/zrepl/daemon/transport/connecter"
"github.com/zrepl/zrepl/daemon/filters"
"github.com/zrepl/zrepl/daemon/pruner"
@@ -233,7 +234,7 @@ outer:
log.WithError(ctx.Err()).Info("context")
break outer
case <-WaitWakeup(ctx):
case <-wakeup.Wait(ctx):
case <-periodicDone:
}
invocationCount++