Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Fix hang: run mastership tracker #1199

Merged
merged 2 commits into from
Feb 8, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/keytransparency-sequencer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down