diff --git a/consul/example/custom-config/server/main.go b/consul/example/custom-config/server/main.go index 413430e..6496782 100644 --- a/consul/example/custom-config/server/main.go +++ b/consul/example/custom-config/server/main.go @@ -63,7 +63,7 @@ func main() { }, } r := consul.NewConsulRegister(consulClient, - consul.WithCheck(check), consul.WithAdditionInfo(additionInfo), + consul.WithCheck(check), consul.WithAdditionInfo(additionInfo), //nolint: staticcheck ) wg.Add(2) diff --git a/consul/registry.go b/consul/registry.go index 5e18b6b..836104d 100644 --- a/consul/registry.go +++ b/consul/registry.go @@ -61,6 +61,8 @@ func WithCheck(check *api.AgentServiceCheck) Option { } // WithAdditionInfo is consul registry option to set AdditionInfo. +// +// Deprecated: Due to its limited usage scenarios, we recommend utilizing the original client if this function is required. func WithAdditionInfo(info *AdditionInfo) Option { return func(o *options) { o.AdditionInfo = *info } }