Skip to content
Snippets Groups Projects
Commit 5635b9a6 authored by aliiohs's avatar aliiohs
Browse files

fix

parent 8dde85d2
No related branches found
No related tags found
No related merge requests found
...@@ -42,12 +42,12 @@ import ( ...@@ -42,12 +42,12 @@ import (
"github.com/apache/dubbo-go/remoting" "github.com/apache/dubbo-go/remoting"
) )
// Options Option is configuration related struct of serviceTTL // Options Options is configuration related struct of serviceTTL
type Options struct { type Options struct {
serviceTTL time.Duration serviceTTL time.Duration
} }
// Option function of handling Options // Option Option will define a function of handling Options
type Option func(*Options) type Option func(*Options)
type registryDirectory struct { type registryDirectory struct {
...@@ -66,7 +66,7 @@ type registryDirectory struct { ...@@ -66,7 +66,7 @@ type registryDirectory struct {
forbidden atomic.Bool forbidden atomic.Bool
} }
// NewRegistryDirectory Create a new RegistryDirectory // NewRegistryDirectory NewRegistryDirectory will create a new RegistryDirectory
func NewRegistryDirectory(url *common.URL, registry registry.Registry, opts ...Option) (*registryDirectory, error) { func NewRegistryDirectory(url *common.URL, registry registry.Registry, opts ...Option) (*registryDirectory, error) {
options := Options{ options := Options{
//default 300s //default 300s
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment