tina
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
1 additions and
3 deletions
-
dtmsvr/svr.go
-
go.mod
-
main.go
|
|
|
@ -32,7 +32,6 @@ func StartSvr() { |
|
|
|
outputs = strings.Split(conf.Log.Outputs, "|") |
|
|
|
} |
|
|
|
logger.InitLog(conf.Log.Level, outputs, conf.Log.LogRotationEnable, conf.Log.LogRotationConfigJSON) |
|
|
|
|
|
|
|
dtmcli.GetRestyClient().SetTimeout(time.Duration(conf.RequestTimeout) * time.Second) |
|
|
|
dtmgrpc.AddUnaryInterceptor(func(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error { |
|
|
|
ctx2, cancel := context.WithTimeout(ctx, time.Duration(conf.RequestTimeout)*time.Second) |
|
|
|
|
|
|
|
@ -16,7 +16,6 @@ require ( |
|
|
|
github.com/lib/pq v1.10.3 |
|
|
|
github.com/lithammer/shortuuid v2.0.3+incompatible |
|
|
|
github.com/lithammer/shortuuid/v3 v3.0.7 |
|
|
|
github.com/natefinch/lumberjack v2.0.0+incompatible // indirect |
|
|
|
github.com/onsi/gomega v1.16.0 |
|
|
|
github.com/prometheus/client_golang v1.11.0 |
|
|
|
github.com/stretchr/testify v1.7.0 |
|
|
|
|
|
|
|
@ -59,7 +59,7 @@ func main() { |
|
|
|
} |
|
|
|
config.MustLoadConfig(*confFile) |
|
|
|
if *isDebug { |
|
|
|
config.Config.Log.Level = "debug" |
|
|
|
config.Config.LogLevel = "debug" |
|
|
|
} |
|
|
|
if *isReset { |
|
|
|
dtmsvr.PopulateDB(false) |
|
|
|
|