Skip to content

Commit

Permalink
Auto stash before merge of "develop" and "origin/develop"
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed Jun 15, 2018
1 parent cb7070e commit ce8f31e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ import (
var sum int32

func myFunc(i interface{}) error {
n := i.(int)
atomic.AddInt32(&sum, int32(n))
n := i.(int32)
atomic.AddInt32(&sum, n)
fmt.Printf("run with %d\n", n)
return nil
}
Expand Down Expand Up @@ -73,7 +73,7 @@ func main() {
// submit tasks
for i := 0; i < runTimes; i++ {
wg.Add(1)
p.Serve(i)
p.Serve(int32(i))
}
wg.Wait()
fmt.Printf("running goroutines: %d\n", p.Running())
Expand Down

0 comments on commit ce8f31e

Please sign in to comment.