add func comment

feat/consul-port-scheme
baozhecheng 2 years ago
parent 634c2d5a96
commit 00fd0ef99d
  1. 1
      contrib/registry/consul/registry.go

@ -63,6 +63,7 @@ func WithDeregisterCriticalServiceAfter(interval int) Option {
} }
} }
// WithRegistryServicePortByScheme with registry service port by scheme
func WithRegistryServicePortByScheme(scheme string) Option { func WithRegistryServicePortByScheme(scheme string) Option {
return func(o *Registry) { return func(o *Registry) {
if o.cli != nil { if o.cli != nil {

Loading…
Cancel
Save