refactor(zrpc): prefer static config for zrpc server statinterceptor (#3105)

This commit is contained in:
cong
2023-04-08 21:03:32 +08:00
committed by GitHub
parent 2e6402f4b5
commit 49135fe25e
5 changed files with 171 additions and 15 deletions

View File

@@ -100,11 +100,13 @@ func (rs *RpcServer) Stop() {
}
// DontLogContentForMethod disable logging content for given method.
// Deprecated: use ServerMiddlewaresConf.NotLoggingContentMethods instead.
func DontLogContentForMethod(method string) {
serverinterceptors.DontLogContentForMethod(method)
}
// SetServerSlowThreshold sets the slow threshold on server side.
// Deprecated: use ServerMiddlewaresConf.SlowThreshold instead.
func SetServerSlowThreshold(threshold time.Duration) {
serverinterceptors.SetSlowThreshold(threshold)
}