Skip to content

Commit

Permalink
[Relayminer] fix: relayminer wait log (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite authored Jul 2, 2024
1 parent 8593170 commit aec367e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/relayer/proxy/server_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import (
)

const (
// supplierStakeWaitTimeSeconds is the time to wait for the supplier to be staked before
// supplierStakeWaitTime is the time to wait for the supplier to be staked before
// attempting to (try again to) retrieve the supplier's on-chain record.
// This is useful for testing and development purposes, where the supplier
// may not be staked before the relay miner starts.
supplierStakeWaitTimeSeconds = 1 * time.Second
supplierStakeWaitTime = 1 * time.Second

// supplierMaxStakeWaitTimeMinutes is the time to wait before a panic is thrown
// if the supplier is still not staked when the time elapses.
Expand Down Expand Up @@ -162,10 +162,10 @@ func (rp *relayerProxy) waitForSupplierToStake(
if err != nil && suppliertypes.ErrSupplierNotFound.Is(err) {
rp.logger.Info().Msgf(
"Waiting %d seconds for the supplier with address %s to stake",
supplierStakeWaitTimeSeconds,
supplierStakeWaitTime/time.Second,
supplierAddress,
)
time.Sleep(supplierStakeWaitTimeSeconds)
time.Sleep(supplierStakeWaitTime)

// See the comment above `supplierMaxStakeWaitTimeMinutes` for why
// and how this is used.
Expand Down

0 comments on commit aec367e

Please sign in to comment.