ソースを参照

mvcc: remove unnecessary type conversion

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 年 前
コミット
bc18474029
1 ファイル変更1 行追加1 行削除
  1. 1 1
      mvcc/watcher_test.go

+ 1 - 1
mvcc/watcher_test.go

@@ -227,7 +227,7 @@ func TestWatchDeleteRange(t *testing.T) {
 	}
 
 	w := s.NewWatchStream()
-	from, to := []byte(testKeyPrefix), []byte(fmt.Sprintf("%s_%d", testKeyPrefix, 99))
+	from, to := testKeyPrefix, []byte(fmt.Sprintf("%s_%d", testKeyPrefix, 99))
 	w.Watch(0, from, to, 0)
 
 	s.DeleteRange(from, to)