File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 9
9
"fmt"
10
10
"io"
11
11
"io/ioutil"
12
- "math/rand"
13
12
"net/http"
14
13
"os"
15
14
"os/exec"
@@ -1277,7 +1276,7 @@ func insertIsuCondition() {
1277
1276
}{query : []string {}, params : []interface {}{}}
1278
1277
}
1279
1278
1280
- ticker := time .NewTicker (300 * time .Millisecond )
1279
+ ticker := time .NewTicker (100 * time .Millisecond )
1281
1280
index := 0
1282
1281
for {
1283
1282
select {
@@ -1309,11 +1308,11 @@ func insertIsuCondition() {
1309
1308
// ISUからのコンディションを受け取る
1310
1309
func postIsuCondition (c echo.Context ) error {
1311
1310
// 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
+ // }
1317
1316
1318
1317
jiaIsuUUID := c .Param ("jia_isu_uuid" )
1319
1318
if jiaIsuUUID == "" {
You can’t perform that action at this time.
0 commit comments