Skip to content

Commit

Permalink
chore: add log
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Nov 28, 2024
1 parent fc105ef commit 6b4cb70
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions node/pkg/chain/helper/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,16 @@ func (s *Signer) MakeGlobalAggregateProof(val int64, timestamp time.Time, name s

func (s *Signer) autoRenew(ctx context.Context) {
autoRenewTicker := time.NewTicker(s.renewInterval)
_ = s.CheckAndUpdateSignerPK(ctx)
err := s.CheckAndUpdateSignerPK(ctx)
if err != nil {
log.Error().Str("Player", "Signer").Err(err).Msg("failed to renew signer pk")
}
for {
select {
case <-ctx.Done():
return
case <-autoRenewTicker.C:
err := s.CheckAndUpdateSignerPK(ctx)
err = s.CheckAndUpdateSignerPK(ctx)
if err != nil {
log.Error().Str("Player", "Signer").Err(err).Msg("failed to renew signer pk")
}
Expand Down

0 comments on commit 6b4cb70

Please sign in to comment.