test
This commit is contained in:
parent
59b2203210
commit
192f9bec8f
@ -4,11 +4,12 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/phyer/core"
|
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/phyer/core"
|
||||||
|
|
||||||
// "sync"
|
// "sync"
|
||||||
"time"
|
"time"
|
||||||
//
|
//
|
||||||
@ -257,12 +258,13 @@ func GetRangeCandleSortedSet(cr *core.Core, setName string, count int, from time
|
|||||||
logrus.Warning("no record with cmd: ZRevRangeByScore ", "setName: ", setName, " from: ", froms, " sts: ", sts, " err:", err.Error())
|
logrus.Warning("no record with cmd: ZRevRangeByScore ", "setName: ", setName, " from: ", froms, " sts: ", sts, " err:", err.Error())
|
||||||
logrus.Warning("zrev lens of ary: lens: ", len(ary), "GetRangeSortedSet ZRevRangeByScore:", "setName:", setName, " opt.Max:", opt.Max, " opt.Min:", opt.Min)
|
logrus.Warning("zrev lens of ary: lens: ", len(ary), "GetRangeSortedSet ZRevRangeByScore:", "setName:", setName, " opt.Max:", opt.Max, " opt.Min:", opt.Min)
|
||||||
go func() {
|
go func() {
|
||||||
// parts := strings.Split(setName, "|")
|
parts := strings.Split(setName, "|")
|
||||||
// instId := parts[1]
|
instId := parts[1]
|
||||||
// // 定义正则表达式,匹配 maX 或 candle 后面的内容直到第一个竖线
|
// 定义正则表达式,匹配 maX 或 candle 后面的内容直到第一个竖线
|
||||||
// period, _ := extractString(setName)
|
period, _ := extractString(setName)
|
||||||
// InvokeCandle(cr, instId, period, fromt, sti)
|
InvokeCandle(cr, instId, period, fromt, sti)
|
||||||
}()
|
}()
|
||||||
|
return &cdl, err
|
||||||
}
|
}
|
||||||
for _, str := range keyAry {
|
for _, str := range keyAry {
|
||||||
if str == nil {
|
if str == nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user