1
1
package cmd
2
2
3
3
import (
4
+ "context"
4
5
"errors"
5
6
"fmt"
6
7
"strings"
7
8
"time"
8
- "context"
9
9
10
- sdk "github.com/cosmos/cosmos-sdk/types"
11
- "golang.org/x/sync/errgroup"
12
10
"github.com/cosmos/cosmos-sdk/client/flags"
11
+ sdk "github.com/cosmos/cosmos-sdk/types"
13
12
clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types"
14
13
chantypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types"
15
14
"github.com/cosmos/ibc-go/v8/modules/core/exported"
@@ -18,6 +17,7 @@ import (
18
17
"github.com/spf13/cobra"
19
18
"github.com/spf13/pflag"
20
19
"github.com/spf13/viper"
20
+ "golang.org/x/sync/errgroup"
21
21
)
22
22
23
23
// transactionCmd represents the tx command
@@ -461,7 +461,7 @@ func relayMsgsCmd(ctx *config.Context) *cobra.Command {
461
461
}
462
462
463
463
relay := func (dir string , ctx context.Context , fromChain , toChain * core.ProvableChain , packets core.PacketInfoList , sh core.SyncHeaders , doExecuteRelay , doExecuteAck , doRefresh bool ) ([]sdk.Msg , error ) {
464
- msgs := make ([]sdk.Msg , 0 , len (packets ) + 1 )
464
+ msgs := make ([]sdk.Msg , 0 , len (packets )+ 1 )
465
465
466
466
if m , err := st .UpdateClients (dir , ctx , fromChain , toChain , doExecuteRelay , doExecuteAck , sh , true ); err != nil {
467
467
return nil , err
@@ -566,7 +566,7 @@ func relayAcksCmd(ctx *config.Context) *cobra.Command {
566
566
}
567
567
568
568
relay := func (dir string , ctx context.Context , fromChain , toChain * core.ProvableChain , acks core.PacketInfoList , sh core.SyncHeaders , doExecuteRelay , doExecuteAck , doRefresh bool ) ([]sdk.Msg , error ) {
569
- msgs := make ([]sdk.Msg , 0 , len (acks ) + 1 )
569
+ msgs := make ([]sdk.Msg , 0 , len (acks )+ 1 )
570
570
571
571
if m , err := st .UpdateClients (dir , ctx , fromChain , toChain , doExecuteRelay , doExecuteAck , sh , doRefresh ); err != nil {
572
572
return nil , err
0 commit comments