Skip to content

Commit

Permalink
start client with options
Browse files Browse the repository at this point in the history
  • Loading branch information
philchia committed Dec 3, 2020
1 parent 63c04cf commit 55e79b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agollo.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ var (
)

// Start agollo client with Conf, start will block until fetch all config to local
func Start(conf *Conf) error {
once.Do(func() { defaultClient = NewClient(conf) })
func Start(conf *Conf, opts ...ClientOption) error {
once.Do(func() { defaultClient = NewClient(conf, opts...) })
return defaultClient.Start()
}

Expand Down

0 comments on commit 55e79b9

Please sign in to comment.