From 6acb84bf759e6179627d9d2c4889ed8e9734094e Mon Sep 17 00:00:00 2001 From: yoshidan Date: Tue, 19 Dec 2023 10:38:27 +0900 Subject: [PATCH] change func name Signed-off-by: yoshidan --- cmd/tx.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/tx.go b/cmd/tx.go index 5f5eb554..958d955e 100644 --- a/cmd/tx.go +++ b/cmd/tx.go @@ -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 } @@ -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 } @@ -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 {