@@ -27,7 +27,7 @@ func Example_setAndGetByKeyVer() {
27
27
Bal : & BallotNum {N : 0 , ProposerId : 2 },
28
28
}
29
29
v := prop .RunPaxos (acceptorIds , & Value {Vi64 : 5 })
30
- fmt .Printf ("written: %v;\n " , v )
30
+ fmt .Printf ("written: %v;\n " , v . Vi64 )
31
31
}
32
32
33
33
// get foo₀
@@ -40,7 +40,7 @@ func Example_setAndGetByKeyVer() {
40
40
Bal : & BallotNum {N : 0 , ProposerId : 2 },
41
41
}
42
42
v := prop .RunPaxos (acceptorIds , nil )
43
- fmt .Printf ("read: %v;\n " , v )
43
+ fmt .Printf ("read: %v;\n " , v . Vi64 )
44
44
}
45
45
46
46
// set foo₁ = 6
@@ -53,7 +53,7 @@ func Example_setAndGetByKeyVer() {
53
53
Bal : & BallotNum {N : 0 , ProposerId : 2 },
54
54
}
55
55
v := prop .RunPaxos (acceptorIds , & Value {Vi64 : 6 })
56
- fmt .Printf ("written: %v;\n " , v )
56
+ fmt .Printf ("written: %v;\n " , v . Vi64 )
57
57
}
58
58
59
59
// get foo₁
@@ -66,13 +66,13 @@ func Example_setAndGetByKeyVer() {
66
66
Bal : & BallotNum {N : 0 , ProposerId : 2 },
67
67
}
68
68
v := prop .RunPaxos (acceptorIds , nil )
69
- fmt .Printf ("read: %v;\n " , v )
69
+ fmt .Printf ("read: %v;\n " , v . Vi64 )
70
70
}
71
71
72
72
// Output:
73
- // written: Vi64:5 ;
74
- // read: Vi64:5 ;
75
- // written: Vi64:6 ;
76
- // read: Vi64:6 ;
73
+ // written: 5 ;
74
+ // read: 5 ;
75
+ // written: 6 ;
76
+ // read: 6 ;
77
77
78
78
}
0 commit comments