Use any instead of interface{}
Signed-off-by: chenyahui <cyhone@qq.com>
This commit is contained in:
@ -122,7 +122,7 @@ func init() {
|
||||
expvar.Publish(
|
||||
"file_descriptor_limit",
|
||||
expvar.Func(
|
||||
func() interface{} {
|
||||
func() any {
|
||||
n, _ := runtime.FDLimit()
|
||||
return n
|
||||
},
|
||||
|
Reference in New Issue
Block a user