Permalink
Browse files

Launch StartSequencingAll in a separate goroutine (#904)

Fixes #868
  • Loading branch information...
gdbelvin committed Jan 8, 2018
1 parent 9a8769b commit ede30a93a8b0c6d73893a31aa1c791eb3ed1acec
Showing with 7 additions and 2 deletions.
  1. +7 −2 cmd/keytransparency-sequencer/main.go
@@ -98,9 +98,14 @@ func main() {
glog.Infof("Signer starting")
// Run servers
ctx := context.Background()
signer.ListenForNewDomains(ctx, *refresh)
cctx, cancel := context.WithCancel(context.Background())
go func() {
if err := signer.ListenForNewDomains(cctx, *refresh); err != nil {
glog.Errorf("StartSequencingAll(): %v", err)
}
}()
run(adminServer)
cancel()
glog.Errorf("Signer exiting")
}

0 comments on commit ede30a9

Please sign in to comment.