Skip to content

Commit 38785f3

Browse files
author
Daisuke Kanda
committed
go fmt
Signed-off-by: Daisuke Kanda <daisuke.kanda@datachain.jp>
1 parent 43ee8ec commit 38785f3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

cmd/tx.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
package cmd
22

33
import (
4+
"context"
45
"errors"
56
"fmt"
67
"strings"
78
"time"
8-
"context"
99

10-
sdk "github.com/cosmos/cosmos-sdk/types"
11-
"golang.org/x/sync/errgroup"
1210
"github.com/cosmos/cosmos-sdk/client/flags"
11+
sdk "github.com/cosmos/cosmos-sdk/types"
1312
clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types"
1413
chantypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types"
1514
"github.com/cosmos/ibc-go/v8/modules/core/exported"
@@ -18,6 +17,7 @@ import (
1817
"github.com/spf13/cobra"
1918
"github.com/spf13/pflag"
2019
"github.com/spf13/viper"
20+
"golang.org/x/sync/errgroup"
2121
)
2222

2323
// transactionCmd represents the tx command
@@ -461,7 +461,7 @@ func relayMsgsCmd(ctx *config.Context) *cobra.Command {
461461
}
462462

463463
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)
465465

466466
if m, err := st.UpdateClients(dir, ctx, fromChain, toChain, doExecuteRelay, doExecuteAck, sh, true); err != nil {
467467
return nil, err
@@ -566,7 +566,7 @@ func relayAcksCmd(ctx *config.Context) *cobra.Command {
566566
}
567567

568568
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)
570570

571571
if m, err := st.UpdateClients(dir, ctx, fromChain, toChain, doExecuteRelay, doExecuteAck, sh, doRefresh); err != nil {
572572
return nil, err

core/service.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"time"
66

77
retry "github.com/avast/retry-go"
8-
"go.opentelemetry.io/otel/codes"
98
sdk "github.com/cosmos/cosmos-sdk/types"
9+
"go.opentelemetry.io/otel/codes"
1010
"golang.org/x/sync/errgroup"
1111
)
1212

@@ -135,7 +135,7 @@ func (srv *RelayService) Serve(ctx context.Context) error {
135135
}
136136

137137
relay := func(dir string, ctx context.Context, relayFrom, relayTo *ProvableChain, packets, acks PacketInfoList, sh SyncHeaders, doExecuteRelay, doExecuteAck, doRefresh bool) ([]sdk.Msg, error) {
138-
msgs := make([]sdk.Msg, 0, len(packets) + len(acks) + 1)
138+
msgs := make([]sdk.Msg, 0, len(packets)+len(acks)+1)
139139

140140
// update clients
141141
if m, err := srv.st.UpdateClients(dir, ctx, relayFrom, relayTo, doExecuteRelay, doExecuteAck, sh, doRefresh); err != nil {
@@ -186,7 +186,7 @@ func (srv *RelayService) Serve(ctx context.Context) error {
186186
if err != nil {
187187
return err
188188
}
189-
msgs.Src = m
189+
msgs.Src = m
190190
return nil
191191
})
192192

0 commit comments

Comments
 (0)