Browse Source

etcdserver: remove unnecessary type conversion

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
e714dd01b3
1 changed files with 3 additions and 3 deletions
  1. 3 3
      etcdserver/server_test.go

+ 3 - 3
etcdserver/server_test.go

@@ -1189,9 +1189,9 @@ func TestConcurrentApplyAndSnapshotV3(t *testing.T) {
 	accepted := 0
 	accepted := 0
 	for k := 1; k <= 101; k++ {
 	for k := 1; k <= 101; k++ {
 		idx++
 		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}}
 		ready := raft.Ready{Entries: []raftpb.Entry{ent}}
 		n.readyc <- ready
 		n.readyc <- ready