diff --git a/contrib/registry/consul/client.go b/contrib/registry/consul/client.go index 471db8b0f10..605b10de2b6 100644 --- a/contrib/registry/consul/client.go +++ b/contrib/registry/consul/client.go @@ -34,11 +34,11 @@ type Client struct { resolver ServiceResolver // healthcheck time interval in seconds healthcheckInterval int - // heartbeat enable heartbeat + // heartbeat enables heartbeat heartbeat bool // deregisterCriticalServiceAfter time interval in seconds deregisterCriticalServiceAfter int - // serviceChecks user custom checks + // serviceChecks user custom checks serviceChecks api.AgentServiceChecks // tags is service tags tags []string diff --git a/contrib/registry/polaris/registry.go b/contrib/registry/polaris/registry.go index eb5c050dc21..615cb0fe6fd 100644 --- a/contrib/registry/polaris/registry.go +++ b/contrib/registry/polaris/registry.go @@ -22,7 +22,7 @@ var ( _ registry.Discovery = (*Registry)(nil) ) -// _instanceIDSeparator . Instance id Separator. +// _instanceIDSeparator. Instance ID Separator. const _instanceIDSeparator = "-" type options struct { @@ -41,13 +41,13 @@ type options struct { // service priority. Default value is 0. The smaller the value, the lower the priority Priority int - // To show service is healthy or not. Default value is True . + // To show service is healthy or not. Default value is True. Healthy bool - // Heartbeat enable .Not in polaris . Default value is True. + // Heartbeat enable. Not in polaris. Default value is True. Heartbeat bool - // To show service is isolate or not. Default value is False . + // To show service is isolate or not. Default value is False. Isolate bool // TTL timeout. if node needs to use heartbeat to report,required. If not set,server will throw ErrorCode-400141 diff --git a/middleware/auth/jwt/jwt.go b/middleware/auth/jwt/jwt.go index b84ed5ba5a4..dd2e167c305 100644 --- a/middleware/auth/jwt/jwt.go +++ b/middleware/auth/jwt/jwt.go @@ -69,7 +69,7 @@ func WithClaims(f func() jwt.Claims) Option { } } -// WithTokenHeader withe customer tokenHeader for client side +// WithTokenHeader with custom tokenHeader for client side func WithTokenHeader(header map[string]any) Option { return func(o *options) { o.tokenHeader = header