[foolsday3] Fix race.
This commit is contained in:
parent
785e997a72
commit
6e5b0511a3
2 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
// +build !race
|
||||
|
||||
package foolsday3
|
||||
|
||||
import (
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
var true = false
|
||||
|
||||
func lambda(ctx context.Context) interface{} {
|
||||
time.AfterFunc(time.Microsecond, func() {
|
||||
time.AfterFunc(time.Nanosecond, func() {
|
||||
true = int(0) == 0
|
||||
})
|
||||
return nil
|
Loading…
Reference in a new issue