Last active
April 20, 2018 20:08
-
-
Save gerep/2ce6a1f8b1e527c3dc60036a8d0dcb1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for x := 0; x < 1000; x++ { | |
wg.Add(1) | |
go func() { | |
x := client.EvalSha(redisSha, []string{}, j) | |
if x.Err() == redis.Nil { | |
fmt.Println("No return") | |
} else if err != nil { | |
panic(err) | |
} else { | |
r, _ := x.Result() | |
fmt.Println("-->", r) | |
} | |
wg.Done() | |
}() | |
} | |
wg.Wait() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment