From a4cbce5725aad54dfee0db19c2490821be33a981 Mon Sep 17 00:00:00 2001 From: Li Bo Date: Tue, 9 Apr 2024 15:00:38 +0800 Subject: [PATCH] Fix incorrect comments Signed-off-by: Magiceses --- pkg/extkingpin/flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/extkingpin/flags.go b/pkg/extkingpin/flags.go index cee8c5df76..ed16e90bef 100644 --- a/pkg/extkingpin/flags.go +++ b/pkg/extkingpin/flags.go @@ -72,7 +72,7 @@ func validateAddrs(addrs addressSlice) error { return nil } -// RegisterCommonObjStoreFlags register flags commonly used to configure http servers with. +// RegisterHTTPFlags register flags commonly used to configure http servers with. func RegisterHTTPFlags(cmd FlagClause) (httpBindAddr *string, httpGracePeriod *model.Duration, httpTLSConfig *string) { httpBindAddr = cmd.Flag("http-address", "Listen host:port for HTTP endpoints.").Default("0.0.0.0:10902").String() httpGracePeriod = ModelDuration(cmd.Flag("http-grace-period", "Time to wait after an interrupt received for HTTP Server.").Default("2m")) // by default it's the same as query.timeout.