mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 16:30:01 +08:00
feat: slow threshold customizable in zrpc (#1191)
* feat: slow threshold customizable in rest * feat: slow threshold customizable in rest * feat: slow threshold customizable in rest * feat: slow threshold customizable in zrpc
This commit is contained in:
@@ -35,6 +35,7 @@ func TestServer_setupInterceptors(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestServer(t *testing.T) {
|
||||
SetServerSlowThreshold(time.Second)
|
||||
srv := MustNewServer(RpcServerConf{
|
||||
ServiceConf: service.ServiceConf{
|
||||
Log: logx.LogConf{
|
||||
|
||||
Reference in New Issue
Block a user