Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
swift1337 committed Aug 2, 2024
1 parent 8e93dee commit a665e67
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 3 deletions.
4 changes: 1 addition & 3 deletions zetaclient/maintenance/tss_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (tl *TSSListener) waitForNewKeyGeneration(ctx context.Context) error {
func (tl *TSSListener) waitForNewKeygen(ctx context.Context) error {

Check warning on line 129 in zetaclient/maintenance/tss_listener.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/maintenance/tss_listener.go#L129

Added line #L129 was not covered by tests
// Initial Keygen retrieval
keygen, err := retry.DoTypedWithBackoffAndRetry(
func() (*observertypes.Keygen, error) { return tl.client.GetKeyGen(ctx) },
func() (observertypes.Keygen, error) { return tl.client.GetKeyGen(ctx) },

Check warning on line 132 in zetaclient/maintenance/tss_listener.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/maintenance/tss_listener.go#L131-L132

Added lines #L131 - L132 were not covered by tests
retry.DefaultConstantBackoff(),
)
if err != nil {
Expand All @@ -147,8 +147,6 @@ func (tl *TSSListener) waitForNewKeygen(ctx context.Context) error {
case err != nil:
tl.logger.Warn().Err(err).Msg("unable to get keygen")
continue
case keygenUpdated == nil:
continue
case keygenUpdated.Status == observertypes.KeygenStatus_PendingKeygen:
continue
case keygen.BlockNumber == keygenUpdated.BlockNumber:
Expand Down
58 changes: 58 additions & 0 deletions zetaclient/testutils/mocks/zetacore_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a665e67

Please sign in to comment.