Browse Source

fix lint error

pull/195/head
yedf2 4 years ago
parent
commit
68b127a1fb
  1. 1
      bench/test-flash-sales.sh
  2. 1
      test/busi/base_types.go

1
bench/test-flash-sales.sh

@ -6,6 +6,7 @@ export LOG_LEVEL=fatal
export STORE_DRIVER=redis
export STORE_HOST=localhost
export STORE_PORT=6379
export BUSI_REDIS=localhost:6379
./bench redis &
echo 'sleeping 3s for dtm bench to run up.' && sleep 3
curl "http://127.0.0.1:8083/api/busi_bench/benchFlashSalesReset"

1
test/busi/base_types.go

@ -131,6 +131,7 @@ type mainSwitchType struct {
// MainSwitch controls busi success or fail
var MainSwitch mainSwitchType
// GetRedisAccountKey return redis key for uid
func GetRedisAccountKey(uid int) string {
return fmt.Sprintf("{a}-redis-account-key-%d", uid)
}

Loading…
Cancel
Save