|
|
@ -96,7 +96,7 @@ func PrepareBenchDB() { |
|
|
func StartSvr() { |
|
|
func StartSvr() { |
|
|
app := dtmutil.GetGinApp() |
|
|
app := dtmutil.GetGinApp() |
|
|
benchAddRoute(app) |
|
|
benchAddRoute(app) |
|
|
logger.Debugf("bench listening at %d", benchPort) |
|
|
logger.Infof("bench listening at %s", benchPort) |
|
|
go func() { |
|
|
go func() { |
|
|
_ = app.Run(fmt.Sprintf(":%s", benchPort)) |
|
|
_ = app.Run(fmt.Sprintf(":%s", benchPort)) |
|
|
}() |
|
|
}() |
|
|
|