Permalink
Browse files

Fix hang: run mastership tracker (#1199)

  • Loading branch information...
gdbelvin committed Feb 8, 2019
1 parent 06aca66 commit edd2c90f078bec0d40021e5c076e36c9899fb2e1
Showing with 2 additions and 0 deletions.
  1. +2 −0 cmd/keytransparency-sequencer/main.go
@@ -212,6 +212,8 @@ func runSequencer(ctx context.Context, conn, mconn *grpc.ClientConn,
election.NewTracker(electionFactory, 1*time.Hour, prometheus.MetricFactory{}),
)

go signer.TrackMasterships(ctx)

sequencer.PeriodicallyRun(ctx, time.Tick(*refresh), func(ctx context.Context) {
if err := signer.AddAllDirectories(ctx); err != nil {
glog.Errorf("PeriodicallyRun(AddAllDirectories): %v", err)

0 comments on commit edd2c90

Please sign in to comment.