From 0d8e71106286ecfe5d4da5f716b4d105258b47e0 Mon Sep 17 00:00:00 2001 From: Kyyyyyyyle Date: Thu, 7 Nov 2024 20:04:47 +0800 Subject: [PATCH] Update tairts.go fix(tairts.go): Fix incorrect Tair command invocation in ExTsRawIncr and ExTsRawIncrArgs functions --- tair/tairts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tair/tairts.go b/tair/tairts.go index b414c25..38fcbb8 100644 --- a/tair/tairts.go +++ b/tair/tairts.go @@ -902,7 +902,7 @@ func (tc tairCmdable) ExTsMRawModifyArgs(ctx context.Context, pKey string, sKeys func (tc tairCmdable) ExTsRawIncr(ctx context.Context, pKey string, sKey string, ts string, value float64) *redis.StringCmd { a := make([]interface{}, 5) - a[0] = "EXTS.S.RAW_MODIFY" + a[0] = "EXTS.S.RAW_INCRBY" a[1] = pKey a[2] = sKey a[3] = ts @@ -914,7 +914,7 @@ func (tc tairCmdable) ExTsRawIncr(ctx context.Context, pKey string, sKey string, func (tc tairCmdable) ExTsRawIncrArgs(ctx context.Context, pKey string, sKey string, ts string, value float64, args *ExTsAttributeArgs) *redis.StringCmd { a := make([]interface{}, 5) - a[0] = "EXTS.S.RAW_MODIFY" + a[0] = "EXTS.S.RAW_INCRBY" a[1] = pKey a[2] = sKey a[3] = ts