Skip to content

Commit

Permalink
change func name
Browse files Browse the repository at this point in the history
Signed-off-by: yoshidan <[email protected]>
  • Loading branch information
yoshidan committed Dec 19, 2023
1 parent 3394be6 commit 6acb84b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ func relayMsgsCmd(ctx *config.Context) *cobra.Command {
if err != nil {
return err
}
srcSeq := getInt64Slice(flagSrcSeqs)
dstSeq := getInt64Slice(flagDstSeqs)
srcSeq := getUint64Slice(flagSrcSeqs)
dstSeq := getUint64Slice(flagDstSeqs)
if err = tryFilterRelayPackets(sp, srcSeq, dstSeq); err != nil {
return err
}
Expand Down Expand Up @@ -303,8 +303,8 @@ func relayAcksCmd(ctx *config.Context) *cobra.Command {
if err != nil {
return err
}
srcSeq := getInt64Slice(flagSrcSeqs)
dstSeq := getInt64Slice(flagDstSeqs)
srcSeq := getUint64Slice(flagSrcSeqs)
dstSeq := getUint64Slice(flagDstSeqs)
if err = tryFilterRelayPackets(sp, srcSeq, dstSeq); err != nil {
return err
}
Expand Down Expand Up @@ -356,7 +356,7 @@ func tryFilterRelayPackets(sp *core.RelayPackets, srcSeq []uint64, dstSeq []uint
return nil
}

func getInt64Slice(key string) []uint64 {
func getUint64Slice(key string) []uint64 {
org := viper.GetIntSlice(key)
ret := make([]uint64, len(org))
for i, e := range org {
Expand Down

0 comments on commit 6acb84b

Please sign in to comment.