Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions contrib/registry/consul/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions contrib/registry/polaris/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var (
_ registry.Discovery = (*Registry)(nil)
)

// _instanceIDSeparator . Instance id Separator.
// _instanceIDSeparator. Instance ID Separator.
const _instanceIDSeparator = "-"

type options struct {
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion middleware/auth/jwt/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading