Skip to content

Commit

Permalink
Linter fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed Oct 3, 2023
1 parent e33fd4c commit 2fb3765
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integration/common/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func RndBtwTime(min time.Duration, max time.Duration) time.Duration {
return time.Duration(RndBtw(uint64(min.Nanoseconds()), uint64(max.Nanoseconds()))) * time.Nanosecond
}

func AwaitReceiptEth(ctx context.Context, client ethadapter.EthClient, txHash gethcommon.Hash, timeout time.Duration) error {
func AwaitReceiptEth(client ethadapter.EthClient, txHash gethcommon.Hash, timeout time.Duration) error {
var receipt *types.Receipt
var err error
err = retry.Do(func() error {
Expand Down
4 changes: 2 additions & 2 deletions integration/simulation/simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,15 @@ func (s *Simulation) bridgeFundingToObscuro() {
transactions = append(transactions, tx)
}

//time.Sleep(3 * time.Second)
// time.Sleep(3 * time.Second)
// todo - fix the wait group, for whatever reason it does not find a receipt...
wg := sync.WaitGroup{}
for _, tx := range transactions {
wg.Add(1)
transaction := tx
go func() {
defer wg.Done()
err := testcommon.AwaitReceiptEth(s.ctx, s.RPCHandles.RndEthClient(), transaction.Hash(), 2*time.Minute)
err := testcommon.AwaitReceiptEth(s.RPCHandles.RndEthClient(), transaction.Hash(), 2*time.Minute)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 2fb3765

Please sign in to comment.