|
@ -465,6 +465,11 @@ func (th *TimeArrowHelper) CallHitTimeArrow(t time.Time, group string, call func |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (th *TimeArrowHelper) GetHitTimeArrow(t time.Time, group string, expandTags ...string) (*TimeArrow, error) { |
|
|
func (th *TimeArrowHelper) GetHitTimeArrow(t time.Time, group string, expandTags ...string) (*TimeArrow, error) { |
|
|
|
|
|
startTime := time.Now() |
|
|
|
|
|
defer func() { |
|
|
|
|
|
log.Println("GetHitTimeArrow耗时:", time.Since(startTime)) |
|
|
|
|
|
}() |
|
|
|
|
|
|
|
|
ta, err := th.GetData(group) |
|
|
ta, err := th.GetData(group) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|