Browse Source

Merge branch 'main' into main

pull/189/head
tina 4 years ago
committed by GitHub
parent
commit
369509a533
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      dtmsvr/svr.go
  2. 1
      go.mod
  3. 2
      main.go

1
dtmsvr/svr.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)

1
go.mod

@ -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

2
main.go

@ -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)

Loading…
Cancel
Save