Skip to content

Commit

Permalink
Update orchestrator sync cadence
Browse files Browse the repository at this point in the history
  • Loading branch information
swift1337 committed Jul 22, 2024
1 parent 4f826f1 commit 49b5def
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zetaclient/orchestrator/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
ethcommon "github.com/ethereum/go-ethereum/common"
"github.com/pkg/errors"
"github.com/rs/zerolog"
"github.com/zeta-chain/zetacore/zetaclient/chains/evm"

"github.com/zeta-chain/zetacore/pkg/bg"
"github.com/zeta-chain/zetacore/pkg/chains"
Expand Down Expand Up @@ -569,7 +570,8 @@ func (oc *Orchestrator) ScheduleCctxBTC(
// runObserverSignerSync runs a blocking ticker that observes chain changes from zetacore
// and optionally (de)provisions respective observers and signers.
func (oc *Orchestrator) runObserverSignerSync(ctx context.Context) error {

Check warning on line 572 in zetaclient/orchestrator/orchestrator.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/orchestrator/orchestrator.go#L572

Added line #L572 was not covered by tests
const cadence = 5 * time.Second
// check every other zeta block
const cadence = 2 * evm.ZetaBlockTime

Check warning on line 574 in zetaclient/orchestrator/orchestrator.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/orchestrator/orchestrator.go#L574

Added line #L574 was not covered by tests

ticker := time.NewTicker(cadence)
defer ticker.Stop()

Check warning on line 577 in zetaclient/orchestrator/orchestrator.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/orchestrator/orchestrator.go#L576-L577

Added lines #L576 - L577 were not covered by tests
Expand Down

0 comments on commit 49b5def

Please sign in to comment.