drop 0 from declaration (golint)
This commit is contained in:
parent
fd573c3095
commit
de34a8a2af
@ -15,7 +15,7 @@ func main() {
|
|||||||
|
|
||||||
// We'll use an unsigned integer to represent our
|
// We'll use an unsigned integer to represent our
|
||||||
// (always-positive) counter.
|
// (always-positive) counter.
|
||||||
var ops uint64 = 0
|
var ops uint64
|
||||||
|
|
||||||
// To simulate concurrent updates, we'll start 50
|
// To simulate concurrent updates, we'll start 50
|
||||||
// goroutines that each increment the counter about
|
// goroutines that each increment the counter about
|
||||||
|
@ -23,8 +23,8 @@ func main() {
|
|||||||
|
|
||||||
// We'll keep track of how many read and write
|
// We'll keep track of how many read and write
|
||||||
// operations we do.
|
// operations we do.
|
||||||
var readOps uint64 = 0
|
var readOps uint64
|
||||||
var writeOps uint64 = 0
|
var writeOps uint64
|
||||||
|
|
||||||
// Here we start 100 goroutines to execute repeated
|
// Here we start 100 goroutines to execute repeated
|
||||||
// reads against the state, once per millisecond in
|
// reads against the state, once per millisecond in
|
||||||
|
@ -37,8 +37,8 @@ type writeOp struct {
|
|||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
// As before we'll count how many operations we perform.
|
// As before we'll count how many operations we perform.
|
||||||
var readOps uint64 = 0
|
var readOps uint64
|
||||||
var writeOps uint64 = 0
|
var writeOps uint64
|
||||||
|
|
||||||
// The `reads` and `writes` channels will be used by
|
// The `reads` and `writes` channels will be used by
|
||||||
// other goroutines to issue read and write requests,
|
// other goroutines to issue read and write requests,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user