Skip to content

Commit

Permalink
[chore][extension/observer] Assign exported function `observer.NewEnd…
Browse files Browse the repository at this point in the history
…pointsWatcher` to a variable and pass checkapi

Signed-off-by: sakulali <sakulali@126.com>
  • Loading branch information
sakulali committed Nov 24, 2023
1 parent f481d0c commit 6f92deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cmd/checkapi/allowlist.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
connector/servicegraphconnector
extension/observer
processor/servicegraphprocessor
processor/servicegraphprocessor
2 changes: 1 addition & 1 deletion extension/observer/endpointswatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type EndpointsWatcher struct {
logger *zap.Logger
}

func NewEndpointsWatcher(endpointsLister EndpointsLister, refreshInterval time.Duration, logger *zap.Logger) *EndpointsWatcher {
var NewEndpointsWatcher = func(endpointsLister EndpointsLister, refreshInterval time.Duration, logger *zap.Logger) *EndpointsWatcher {
return &EndpointsWatcher{
EndpointsLister: endpointsLister,
RefreshInterval: refreshInterval,
Expand Down

0 comments on commit 6f92deb

Please sign in to comment.