mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
chore: remove repetitive words (#31153)
Signed-off-by: gcmutator <329964069@qq.com>
This commit is contained in:
parent
c3d53eb1bf
commit
6edd06083f
2
internal/core/build-support/cpplint.py
vendored
2
internal/core/build-support/cpplint.py
vendored
@ -3852,7 +3852,7 @@ def CheckOperatorSpacing(filename, clean_lines, linenum, error):
|
|||||||
elif not Match(r'#.*include', line):
|
elif not Match(r'#.*include', line):
|
||||||
# Look for < that is not surrounded by spaces. This is only
|
# Look for < that is not surrounded by spaces. This is only
|
||||||
# triggered if both sides are missing spaces, even though
|
# triggered if both sides are missing spaces, even though
|
||||||
# technically should should flag if at least one side is missing a
|
# technically should flag if at least one side is missing a
|
||||||
# space. This is done to avoid some false positives with shifts.
|
# space. This is done to avoid some false positives with shifts.
|
||||||
match = Match(r'^(.*[^\s<])<[^\s=<,]', line)
|
match = Match(r'^(.*[^\s<])<[^\s=<,]', line)
|
||||||
if match:
|
if match:
|
||||||
|
|||||||
@ -180,7 +180,7 @@ func (kv *etcdKV) LoadBytesWithPrefix(key string) ([]string, [][]byte, error) {
|
|||||||
return keys, values, nil
|
return keys, values, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// LoadBytesWithPrefix2 returns all the the keys,values and key versions with the given key prefix.
|
// LoadBytesWithPrefix2 returns all the keys,values and key versions with the given key prefix.
|
||||||
func (kv *etcdKV) LoadBytesWithPrefix2(key string) ([]string, [][]byte, []int64, error) {
|
func (kv *etcdKV) LoadBytesWithPrefix2(key string) ([]string, [][]byte, []int64, error) {
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
key = path.Join(kv.rootPath, key)
|
key = path.Join(kv.rootPath, key)
|
||||||
|
|||||||
@ -27,7 +27,7 @@ func TestGroupChecker(t *testing.T) {
|
|||||||
groupName := `test_group`
|
groupName := `test_group`
|
||||||
signal := make(chan []string, 1)
|
signal := make(chan []string, 1)
|
||||||
// 10ms period which set before is too short
|
// 10ms period which set before is too short
|
||||||
// change 10ms to 500ms to ensure the the group checker schedule after the second value stored
|
// change 10ms to 500ms to ensure the group checker schedule after the second value stored
|
||||||
duration := 500 * time.Millisecond
|
duration := 500 * time.Millisecond
|
||||||
gc1 := GetGroupChecker(groupName, duration, func(list []string) {
|
gc1 := GetGroupChecker(groupName, duration, func(list []string) {
|
||||||
signal <- list
|
signal <- list
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user