We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ae274a commit df3b0b0Copy full SHA for df3b0b0
mse-go-quickstart-demo/RequestSender/go.sum
mse-go-quickstart-demo/RequestSender/main.go
@@ -28,6 +28,9 @@ func doHttpRequest() {
28
Timeout: 5 * time.Second,
29
}
30
for {
31
+ randN := rand.Intn(100)
32
+ time.Sleep(time.Duration(randN) * time.Millisecond)
33
+
34
targetDomain := "mse-go-demo-a"
35
lbDomain := os.Getenv("MSE_GATEWAY_DOMAIN")
36
if lbDomain != "" {
@@ -40,7 +43,6 @@ func doHttpRequest() {
40
43
continue
41
44
42
45
- randN := rand.Intn(100)
46
if randN > 50 {
47
req.Header.Set("x-mse-tag", "gray")
48
@@ -56,6 +58,5 @@ func doHttpRequest() {
56
58
57
59
60
fmt.Printf("doHttpRequest do request success, resp is %v\n", resp)
- time.Sleep(time.Duration(randN) * time.Millisecond)
61
62
0 commit comments