Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
corverroos committed Jun 6, 2022
1 parent 67d6b06 commit fdf3ca2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dkg/dkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ type Config struct {

// Run executes a dkg ceremony and writes secret share keystore and cluster lock files as output to disk.
func Run(ctx context.Context, conf Config) (err error) {
ctx, cancel := context.WithCancel(ctx)
defer cancel()

ctx = log.WithTopic(ctx, "dkg")
defer func() {
if err != nil {
Expand Down Expand Up @@ -128,7 +131,7 @@ func Run(ctx context.Context, conf Config) (err error) {

log.Info(ctx, "Connecting to peers...")

ctx, cancel, err := waitPeers(ctx, tcpNode, peers)
ctx, cancel, err = waitPeers(ctx, tcpNode, peers)
if err != nil {
return err
}
Expand Down

0 comments on commit fdf3ca2

Please sign in to comment.