瀏覽代碼

etcdserver: remove unnecessary type conversion

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 年之前
父節點
當前提交
e714dd01b3
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      etcdserver/server_test.go

+ 3 - 3
etcdserver/server_test.go

@@ -1189,9 +1189,9 @@ func TestConcurrentApplyAndSnapshotV3(t *testing.T) {
 	accepted := 0
 	for k := 1; k <= 101; k++ {
 		idx++
-		ch := s.w.Register(uint64(idx))
-		req := &pb.Request{Method: "QGET", ID: uint64(idx)}
-		ent := raftpb.Entry{Index: uint64(idx), Data: pbutil.MustMarshal(req)}
+		ch := s.w.Register(idx)
+		req := &pb.Request{Method: "QGET", ID: idx}
+		ent := raftpb.Entry{Index: idx, Data: pbutil.MustMarshal(req)}
 		ready := raft.Ready{Entries: []raftpb.Entry{ent}}
 		n.readyc <- ready