Skip to content

Commit 4e2da32

Browse files
committed
fix
1 parent d6b3700 commit 4e2da32

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

app/webapp/go/main.go

+6-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"fmt"
1010
"io"
1111
"io/ioutil"
12-
"math/rand"
1312
"net/http"
1413
"os"
1514
"os/exec"
@@ -1277,7 +1276,7 @@ func insertIsuCondition() {
12771276
}{query: []string{}, params: []interface{}{}}
12781277
}
12791278

1280-
ticker := time.NewTicker(300 * time.Millisecond)
1279+
ticker := time.NewTicker(100 * time.Millisecond)
12811280
index := 0
12821281
for {
12831282
select {
@@ -1309,11 +1308,11 @@ func insertIsuCondition() {
13091308
// ISUからのコンディションを受け取る
13101309
func postIsuCondition(c echo.Context) error {
13111310
// TODO: 一定割合リクエストを落としてしのぐようにしたが、本来は全量さばけるようにすべき
1312-
dropProbability := 0.6
1313-
if rand.Float64() <= dropProbability {
1314-
c.Logger().Warnf("drop post isu condition request")
1315-
return c.NoContent(http.StatusAccepted)
1316-
}
1311+
// dropProbability := 0.6
1312+
// if rand.Float64() <= dropProbability {
1313+
// c.Logger().Warnf("drop post isu condition request")
1314+
// return c.NoContent(http.StatusAccepted)
1315+
// }
13171316

13181317
jiaIsuUUID := c.Param("jia_isu_uuid")
13191318
if jiaIsuUUID == "" {

0 commit comments

Comments
 (0)